The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Calculating time Difference with Submission Pre-Parser - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8) +--- Forum: Modules (https://forums.formtools.org/forumdisplay.php?fid=16) +--- Thread: Calculating time Difference with Submission Pre-Parser (/showthread.php?tid=27460) |
Calculating time Difference with Submission Pre-Parser - ramonbps - Aug 25th, 2017 So i been trying to get this going calculating time difference of my for form. Below is my code. if (isset($_POST["checkin"]) && $_POST["checkout"]) { $tcheckin = $_post['checkin']; $tcheckout = $_post['checkout']; $tdiff = date_diff("$tcheckin","$tcheckout")->format("%H:%I:%S"); $_POST["inandout"]=["$tdiff"]; exit; I am not sure what i am doing wrong. RE: Calculating time Difference with Submission Pre-Parser - ramonbps - Aug 28th, 2017 (Aug 25th, 2017, 11:10 AM)ramonbps Wrote: So i been trying to get this going calculating time difference of my for form. this is my actually code PHP Code: $tcheckin=$_POST["checkin"]; Attach is the blank page i get. RE: Calculating time Difference with Submission Pre-Parser - nelsondcosta - Aug 30th, 2017 Im trying something like that... but I fail like the new Death Note movie :S RE: Calculating time Difference with Submission Pre-Parser - ramonbps - Aug 30th, 2017 What have you tried maybe we can, come with a solution. RE: Calculating time Difference with Submission Pre-Parser - ramonbps - Sep 11th, 2017 So i got it working, this is what i did below. I hope this helps!. PHP Code: // Set Time Zone |