Hi everyone,
I hope someone can help me with this:
I have a web page where user can search for an event by date(start_date). the page contains a textbox linked to a calnedar. When the user clicks on the calendar, this one popups, he select a date that goes to the textbox.
What I want to do is to prevent user from typing a date directley to the textbox. I used the property "disabled" for the textbox, it works fine but when I send data to another page"search.php" through the POST method, the variable "start_date" is empty.
here is the code:
<form name="dateForm" action="post" action="search.php">
<td width="62"><input type='text' name='start_date' disabled size='10'>
</td>
<td width="24"><a href="javascript:void(0)" onClick="showCalendar(dateForm.start_date,'yyyy/mm/dd','Choose date')">
<img src="../../images/calendar.gif" BORDER="0" width="23" height="23"></a>
</td>
<td width="31"><input name="go" type="submit" value="Go"></td>
</form>
Thanks in advance.
Date issue.
Moderator: General Moderators
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact: