Re: Pass a value as hidden to PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 1:23 PM -0500 12/3/10, Larry Sandwick wrote:
Wrong file sent the first time... this one has the right file

How do I get the document.tstest.timestamp.value from the JS and pass it as
a hidden value using a $var to the resultsHistory.php page ?

See the code listed below, any help would be appreciated !

[snip]

<html>
<title> Get History </title>
<head>
<script language="JavaScript" src="ts_picker.js"> </script>
</head>
<body>

Off the top of my head (not tested, but close)

HTML

echo "<input type='hidden' name='timestamp' value='<script language="JavaScript" src="ts_picker.js"></script>' />";

PHP:

<?php
$timestamp = $_POST['timestamp'];
?>


Cheers,

tedd
--
-------
http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux