Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: pass the value

  1. #1
    Senior Coder crmpicco's Avatar
    Join Date
    Jan 2005
    Location
    Mauchline, Scotland
    Posts
    1,092
    Thanks
    15
    Thanked 1 Time in 1 Post

    pass the value

    <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?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form

    Build it into a proper form 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.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •