Jump to content

Recommended Posts

I have a booking form and i am using js calander and this is used to input the date into the form. however when i return the data collected by the form with a table it only returns the first number eg "3" instead of "31/12/2008".

 

If you need any more info ask.

 

Many thanks

 

Will

Link to comment
https://forums.phpfreaks.com/topic/136514-solved-extacting-date-from-a-form/
Share on other sites

thanks for all your replies, im not exactly sure what code to post but ill just post some bits, it wont be easy to read because it wont be taged at the beggining. code in the html form:

 

   <td>
             <input
	       type="text"
		   readonly="readonly"
		   value="dd/mm/yy"
		   onfocus="this.select();lcs(this)" 
		   onclick="event.cancelBubble=true;this.select();lcs(this)" 
		   name="departure_date"
		 >
	   </td>

 

variable code:

 


$date_out            = $_POST['departure_date'];

 

then further down in my while loop (in an echo statement):

 

	   <td>
    ".$date_out[departure_date]."
   </td>

 

thanks so much for your responses, i would like more info on how to check the variable output :) thanks!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.