will_1990 Posted December 11, 2008 Share Posted December 11, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/136514-solved-extacting-date-from-a-form/ Share on other sites More sharing options...
gevans Posted December 11, 2008 Share Posted December 11, 2008 Posting some code would help Quote Link to comment https://forums.phpfreaks.com/topic/136514-solved-extacting-date-from-a-form/#findComment-712567 Share on other sites More sharing options...
Brian W Posted December 11, 2008 Share Posted December 11, 2008 for trouble shooting, echo the $_POST value of the date input in question to see what it is getting. another good trick for debugging is to echo your queries so you can see exactly what is happening. Quote Link to comment https://forums.phpfreaks.com/topic/136514-solved-extacting-date-from-a-form/#findComment-712574 Share on other sites More sharing options...
premiso Posted December 11, 2008 Share Posted December 11, 2008 Post some code where this is happening, the form and the page the form loads into (the specific parts if possible) Quote Link to comment https://forums.phpfreaks.com/topic/136514-solved-extacting-date-from-a-form/#findComment-712588 Share on other sites More sharing options...
nadeemshafi9 Posted December 11, 2008 Share Posted December 11, 2008 if your using ajax youl need to serialise the / Quote Link to comment https://forums.phpfreaks.com/topic/136514-solved-extacting-date-from-a-form/#findComment-712592 Share on other sites More sharing options...
will_1990 Posted December 11, 2008 Author Share Posted December 11, 2008 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! Quote Link to comment https://forums.phpfreaks.com/topic/136514-solved-extacting-date-from-a-form/#findComment-712625 Share on other sites More sharing options...
gevans Posted December 11, 2008 Share Posted December 11, 2008 <td> ".$date_out." </td> Quote Link to comment https://forums.phpfreaks.com/topic/136514-solved-extacting-date-from-a-form/#findComment-712629 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.