Results 1 to 3 of 3

Thread: Jason's Calender Help?

  1. #1
    Join Date
    Feb 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Jason's Calender Help?

    Hello all,
    I'm trying to use the very useful calender script.
    http://www.dynamicdrive.com/dynamici...oncalendar.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.

    Code:
    <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

  2. #2
    Join Date
    Feb 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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:

    Code:
    <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
    Last edited by Hip_Hip_Array; 02-27-2007 at 12:02 PM.

  3. #3
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Jason's calendar

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •