Click to See Complete Forum and Search --> : date picker problem
squirrl
03-16-2003, 12:42 PM
Hi,
I have been working with date picker.
The calendar pops up fine and I can enter a date in my text box. However, if I try to use date picker in conjunction with FormMail, I can no longer enter a date.
Are the two incompatible and, if so, does anyone know of a popup calendar that will work with Formmail?
Thanks,
squirrl.
Nevermore
03-16-2003, 01:02 PM
I'm not familiar with formMail, but I can't think why they would be incompatible. Perhaps you could post your scripts?
squirrl
03-16-2003, 02:20 PM
cijori,
Thanks for the reply.
If what I have just been reading is correct, the problem derives from the fact that you cannot have a form within a form.
The solution appears to be a popup calendar script that can be attached to a text box that does not require its own form.
Any ideas most welcome.
squirrl.
Nevermore
03-16-2003, 02:22 PM
Why do you need nested forms? If you post your script, I can take a look.
squirrl
03-16-2003, 07:16 PM
cijori,
Matt Wright's FormMail script gets its information from a form on your page:
<FORM method=post action="http://www.yoursite.co.uk/cgi-bin/FormMail.pl">
<input type="hidden" name="recipient" value="info@yoursite.co.uk">
<input type="hidden" name="subject" value="Client Enquiry">
etc.......
When you want to enter dates, via date picker, you need something like:
<TR>
<TD width="116"><H3>Start date:</H3>
</TD>
<TD><H4>
<form name="calform">
<input type=text name="trip_start" size=15><a href="javascript:show_calendar('calform.trip_start');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src="show-calendar.gif" width=24 height=22 border=0></a>
</form>
</H4>
</TD>
</TR>
This makes it a form within a form or is there something of which I am not aware?
squirrl.
Yeah, get rid of your nested forms. Just use the one...