-2
<input type = "text" name = "time1" value = "<?php echo $row['Hours']; ?>">
<input type = "text" name = "time2">
<input type = "submit"name = "Compute" value = "Compute" >
$calc="";
if(isset($_POST["Compute"]))
{
$time1=$_POST['time1'];
$time2=$_POST['time2'];
$calc = ($time1=$_POST['time1']-$time2=$_POST['time2']);
我想計算兩次之間經過的時間。例如,我在TextBox1中輸入上午9:30,然後在TextBox2中我進入下午5:00兩次之間的時間間隔計算器
添加這個例子:https://eval.in/751897 – C2486