![]() |
|
#1
|
|||
|
|||
|
hi guys
can anybody help me? how can i save the date in a php variable? greetings from switzerland balg |
|
#2
|
|||
|
|||
|
I am not 100% sure what you mean, but assuming you want to pass the date the user has selected into php for further processing ... put the text box inside a form, set the form method="post" and action="[your page filename].php". Also give the text area a name, i.e. name="date"
then in your PHP script, get the data with $_REQUEST["date"] If you want to use the date in PHP at all, you probably want to convert the date string (which is in european standard notation) to a unix timestamp. I used the following 1 liner to do this: $timestamp = strtotime(str_replace("/","-",$_REQUEST["date"])); |
![]() |
| Thread Tools | |
| Display Modes | |
|
|