I want to send my check-in and check-out details to two pages which are x.php
and y.php
.
I have tried this code:
<form class="wrap-form-reservation size22 m-l-r-auto" action ="x.php","y.php" method="post">
The code above does not work. Please tell me the proper method of doing this.
i have a pages one is reservation.php it gets checkin and checkout detail from user and that datas sends to roomdetail.php to find available room and select the room. after select room it redirect to detail.php this what getting user details and total money and payments. for this i need to calculate how many days customer will be stay at hotel. therfore i need to ass checkin and checkout value to detail.php..
if any alternative method to solve this problem please kindly explain me
i used this technique to get checkin and checkout
$date1=$_SESSION["checkin"];
$date2= $_SESSION["checkout"];
$diff = abs(strtotime($date2) - strtotime($date1));
$years = floor($diff / (365*60*60*24));
$months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24));
$days = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24));
echo $days;
Now its working