hi, i have a form that get´s date from a datepicker like this 12/05/2012 in 1 variable, but i want it after get the date from the datepicker, to put date it in 3 diferent variables:
$day
$month
$year
How can i do this?
code example:
<form action="destiniaXMLrequest.php" method="post" name="getxmlrequest">
<label>Check In</label> <input type="date" name="CheckIn" id="checkinflight"/><br/>
<label>Check Out</label><input type="date" name="CheckOut" id="checkoutflight"/><br/>
<input type="submit" value="Send" />
<input type="reset" value="Clear Fields" />
</form>
this is the php code:
$checkin_day = $_POST['CheckIn'];
$checkout_day = $_POST['CheckOut'];
echo "this is the data you enter in the form:<br>";
echo $checkin_day."<br>";
echo $checkout_day."<br>";
echo("What i want to do is to put the date of the datepicker (in 1 variable) in 3 diferent variables<br>");
echo("like this:<br>");
echo ('$checkin_day'."<br>");
echo ('$checkin_month'."<br>");
echo ('$checkin_year'."<br>");
Thanks for any help guys