Javascript Tooltips, Popups, Captions - BoxOver  

Go Back   Javascript Tooltips, Popups, Captions - BoxOver > Javascipt calendar > Feedback
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 07-08-2007, 10:47 PM
Balg Balg is offline
Junior Member
 
Join Date: Jul 2007
Posts: 1
Default save the date in a php variable

hi guys

can anybody help me?
how can i save the date in a php variable?

greetings from switzerland
balg
Reply With Quote
  #2  
Old 07-12-2007, 01:59 AM
rgraham rgraham is offline
Junior Member
 
Join Date: Jul 2007
Posts: 2
Default

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"]));
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:36 PM.