Forum Moderators: open
--------------------------------------------------------------------------------
Hello there all.
I've just run a test on my clients site, but it doesn't appear to post the dates or times to the shopping cart.
Have I typed something wrong?
Here is my code:
<form action=http://www.example.com/cart.asp name="demo1,demo2,demo3,demo4,demo5,demo6,demo7.demo8,demo9, demo10" method=post>
<input type=hidden name=itemname value='25 Hours one to one teaching x 1 week'>
<input type=hidden name=price value=200.00>
<input type=hidden name=storeid value=17142>
<input type=hidden name=quantity value=1>
<input id="demo1" type="text" size="25">
<a href="javascript:NewCal('demo1','ddmmmyyyy',true,24)">< ;img src="cal.gif" width="16" height="8" border="0" alt="Pick a date and time"></a>Lession 1:
<input id="demo2" type="text" size="25">
<a href="javascript:NewCal('demo2','ddmmmyyyy',true,24)">< ;img src="cal.gif" width="16" height="8" border="0" alt="Pick a date and time"></a>Lession 2:
<input id="demo3" type="text" size="25">
<a href="javascript:NewCal('demo3','ddmmmyyyy',true,24)">< ;img src="cal.gif" width="16" height="8" border="0" alt="Pick a date and time"></a>Lession 3:
<input id="demo4" type="text" size="25">
<a href="javascript:NewCal('demo4','ddmmmyyyy',true,24)">< ;img src="cal.gif" width="16" height="8" border="0" alt="Pick a date and time"></a>Lession 4:
<input id="demo5" type="text" size="25">
<a href="javascript:NewCal('demo5','ddmmmyyyy',true,24)">< ;img src="cal.gif" width="16" height="8" border="0" alt="Pick a date and time"></a>Lession 5:
<input id="demo6" type="text" size="25">
<a href="javascript:NewCal('demo6','ddmmmyyyy',true,24)">< ;img src="cal.gif" width="16" height="8" border="0" alt="Pick a date and time"></a>Lession 6:
<input id="demo7" type="text" size="25">
<a href="javascript:NewCal('demo7','ddmmmyyyy',true,24)">< ;img src="cal.gif" width="16" height="8" border="0" alt="Pick a date and time"></a>Lession 7:
<input id="demo8" type="text" size="25">
<a href="javascript:NewCal('demo8','ddmmmyyyy',true,24)">< ;img src="cal.gif" width="16" height="8" border="0" alt="Pick a date and time"></a>Lession 8:
<input id="demo9" type="text" size="25">
<a href="javascript:NewCal('demo9','ddmmmyyyy',true,24)">< ;img src="cal.gif" width="16" height="8" border="0" alt="Pick a date and time"></a>Lession 9:
<input id="demo10" type="text" size="25">
<a href="javascript:NewCal('demo10','ddmmmyyyy',true,24)">&l t;img src="cal.gif" width="16" height="8" border="0" alt="Pick a date and time"></a>Lession 10:
<input type=image src="addtobasket_r2_c2.gif" alt="Add to Basket" width="158" height="47"></form>
Thank you for your help in advanced.
Best wishes
David Hamer
[edited by: tedster at 11:33 pm (utc) on Feb. 2, 2006]
[edit reason] use example.com in code [/edit]
You have a period between demo7.demo8 in your form name.
You have too many characters in your date format:
ddmmmyyyy s/b ddmmyyyy My bet is the second one is causing your problem. If you are using some form of Gecko browser like Firefox to test (probably not), then you could simply type
javascript: into your address bar and get a Javascript debugging tool that would tell you what's going on. Might not be a bad idea ...