Pass a value as hidden to PHP
| From: | Larry Sandwick | Date: | Fri, 03 Dec 2010 17:12:09 +0000 |
| Subject: | Pass a value as hidden to PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-309839@lists.php.net to get a copy of this message | ||
How do I get the document.tstest.timestamp.value from the JS and pass it as
a hidden value on the resultsHistory.php page ?
See the code listed below, andy help would be appreciated !
<html>
<title> Get History </title>
<head>
<script language="JavaScript" src="ts_picker.js
<view-source:http://sarreid.com/SarreidRep/ts_picker.js>
"> </script>
</head>
<body>
<center>
<h1> Company History </h1>
<table width=600 border=0><tr><td>
<form name="tstest" method="post" action="http:resultsHistory.php
target=_blank>
Enter Starting Date :
</td><td height=100>
<input type="Text" name="timestamp" value="">
<a href="javascript:show_calendar('document.tstest.timestamp',
document.tstest.timestamp.value);"><img src="cal.gif
<view-source:http://sarreid.com/SarreidRep/cal.gif> "
width="16" height="16"
border="0" alt="Click Here to Pick up the timestamp"></a>
<tr><td height=100>
Enter Company:
</td><td>
<input type="Text" Name="rep" Value="1649272181">
<input type="Text" Name="company" Value="20251">
<tr><td>
</td><td align=right>
<input type='hidden' name='h_company' value='20251' />
<input type='hidden' name='h_mpad' value='1649272181' />
<input type="Submit" Name=Submit" Value="Get History">
</form>
</td></tr></table>
</center>
</body>
</html>
Larry Sandwick
(252) 291-1414 x223
visit - www.sarreid.com