Jump to content

[SOLVED] extacting date from a form


will_1990

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.