i want to display the difference of two dates chosen by the user from a form and i want to display the form details in another page after submitting
This is the code to submit the form and store it in the database I want to show the form details in another page after submitting if(isset($_POST[‘submit’])) { $pickup = $_POST[‘pickup’]; $dropoff = $_POST[‘dropoff’]; $from_date = $_POST[‘fromdate’]; $to_date = $_POST[‘todate’]; $diff = date_diff($from_date, $to_date); //$difff = $diff->format(“%a”). ” Days “; if($from_date < $to_date) { //$_SESSION[‘diff’] […]
Continue Reading