Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
thank u i have solved this now loool

What I have tried:

google
changing format
youtube
Posted
Updated 6-Jan-18 7:26am
v4
Comments
CHill60 6-Jan-18 13:53pm    
Why have you removed the text from your post? Just delete it

1 solution

Based on what presented, the textbox id is datepicker, the code should be $_POST['datepicker'] instead of $_POST['date']
 
Share this answer
 
Comments
Member 13591382 25-Dec-17 15:02pm    
@BryianTan hi, do all of the 'date' functions have to be changed to that then?
Bryian Tan 25-Dec-17 17:54pm    
The date element already has an id=datepicker . Currently, during the post event, the code is looking for the value of a form element with id="date" ($_POST['date']), which should be $_POST['datepicker']

Read more about PHP Post
PHP 5 Form Handling[^]
Member 13591382 27-Dec-17 8:39am    
Hello, I have updated it and my SQL is still not storing the date properly.
Bryian Tan 27-Dec-17 12:42pm    
Can you do a print/echo to see what in the $date variable?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900