Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 3rd, 2005, 10:30 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default 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?

__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old February 3rd, 2005, 11:04 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

<tr bordercolor="#ECECEC" bgcolor="#ECECEC">
    <td align="center">
    <input type="text" name="date" value="">
    <input type="button" name="date_button" onclick="location.href='display_bookings.asp?custo m_date=(this.form.date.value)'">

    </td>
</tr>

doesnt work, need help..................

 
Old February 3rd, 2005, 11:05 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

ignore the commented out HTML

 
Old February 3rd, 2005, 01:57 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Try:

<tr bordercolor="#ECECEC" bgcolor="#ECECEC">
    <td align="center">
    <input type="text" name="date">
    <input type="button" value="Go" name="date_button" onclick="document.your_form_name.submit();">
    </td>
</tr>



Om Prakash
 
Old February 4th, 2005, 05:11 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

<form name="form2" action="display_bookings.asp" method="post">
<tr bordercolor="#ECECEC" bgcolor="#ECECEC">
<td align="center">Enter a date to view bookings for that date:</td></tr>
<tr bordercolor="#ECECEC" bgcolor="#ECECEC">
    <td align="center">
    <input type="text" size="10" name="date" value="" onblur="check_date(this)">&nbsp;&nbsp;

<input type="button" name="date_button" value="Submit" onclick="form.submit()">
<!-- Enter a Date (MM/DD/YY) : <input type="text" name="DATE1" size="10">
<input type="button" value="Test" onclick="checkDateFormat(this.form.DATE1,3)">-->

    </td>
</tr>
</form>

Works






Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i pass value for GUI? redprawn_89 C# 2005 2 June 3rd, 2008 08:09 PM
pass parameter naeem_ul_hussan Classic ASP Basics 2 August 30th, 2007 11:18 AM
How to pass data ?? aliirfan84 .NET Web Services 9 August 4th, 2007 11:02 AM
Pass value EbenezerThomas ASP.NET 1.0 and 1.1 Basics 1 April 30th, 2007 02:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.