...

View Full Version : pass the value



crmpicco
02-03-2005, 02:47 PM
<tr bordercolor="#ECECEC" bgcolor="#ECECEC">
<td align="center">
<input type="text" name="date">
<input type="button" value="Go" name="date_button" onclick="location.href='display_bookings.asp?'">
</td>
</tr>

How do i pass the value of the 'date' text box to the page 'display_bookings.asp' when the button is clicked.

I want to enter the date then pass it to display_bookings.asp when i click Go.

How is this done?

ronaldb66
02-03-2005, 03:04 PM
Build it into a proper form (http://htmldog.com/guides/htmlbeginner/forms/) with a submit function (you can call it "go" if you want); the variable values will be made available to the script in the page that is called by submitting the form.
You don't even need javascript for the submit function, either.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum