PDA

View Full Version : Jason's Calender Help?



Hip_Hip_Array
02-27-2007, 11:33 AM
Hello all,
I'm trying to use the very useful calender script.
http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm

I am having problems passing the value that is selected so that it can be stored in a DB.

Regardless of what date is selected it is only storing today's date.


<form name="targets" action="save_targets.php" method="post">
<hr>
<h3><center>Add New Target</center></h3><br>
<table border="0" align="center" cellpadding="2" width="98%">
<tr>
<th class=table>Target</th>
<th class=table>Type</th>
<th class=table>How</th>
<th class=table>Whom</th>
<th class=table>By When</th>
</tr>
<tr>
<td class=table><textarea name="target" cols="13" rows="3"></textarea></td>
<td class=table><select name="type">
<option value="NIL">NIL</option>
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
</select></td>
<td class=table><textarea name="how" cols="13" rows="3"></textarea></td>
<td class=table><input type="text" name="whom" size="8"></td>
<td class=table><input type="hidden" name="when" size="8"><script>DateInput('when', true, 'DD-MM-YYYY')</script></td>
</tr>
</table>
<input type="submit" value="Save Target">
</form>


Am I missing an option?

Many Thanks

Hip_Hip_Array
02-27-2007, 11:40 AM
Doh! After reading through my thread to check it made sense and was correct, I have noticed my mistake.

Sorry to all for the piontless thread, I'd been looking at it for ages before I posted.

LoL

I have created the hidden field and I do not need to, the code should be:


<form name="targets" action="save_targets.php" method="post">
<hr>
<h3><center>Add New Target</center></h3><br>
<table border="0" align="center" cellpadding="2" width="98&#37;">
<tr>
<th class=table>Target</th>
<th class=table>Type</th>
<th class=table>How</th>
<th class=table>Whom</th>
<th class=table>By When</th>
</tr>
<tr>
<td class=table><textarea name="target" cols="13" rows="3"></textarea></td>
<td class=table><select name="type">
<option value="NIL">NIL</option>
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
</select></td>
<td class=table><textarea name="how" cols="13" rows="3"></textarea></td>
<td class=table><input type="text" name="whom" size="8"></td>
<td class=table><script>DateInput('when', true, 'DD-MM-YYYY')</script></td>
</tr>
</table>
<input type="submit" value="Save Target">
</form>

Cheers

aloesv
03-04-2007, 11:24 PM
I was wondering if you could help me?
I want to use Jason's calendar script on my web page. Twice!
The first ask for a date of arrival and the second ask for a date of departure.
I create a php file so that the informations entered by a visitor are transmitted to me.
I have tried and I get today's date in both fields.
Is it possible to make it work?
Thanks
Andre B.