i have simple script that suppose if i attendance at 9:00 oclock it will be add 8:30 hours (this is work time) + 00:30 (this is break time). and it will print the leaving time it will be (6:00) but it not work know why :
<form id="form1" id="form1" action="mail.php" method="POST">
<label>time
<span class="small">Add your attendance time</span>
</label>
<input type="text" name="time" value="9:00" >
<label>Email
<span class="small">Enter a Valid Email</span>
</label>
<input type="text" name="email" value="amd@dt4it.com">
<br />
<br />
<label>break
<span class="small">break </span>
</label>
<select name="break" size="1">
<option value="00:30">yes</option>
<option value="00:00">no</option>
</select>
<br />
<br />
<br />
<button type="submit" value="Send" style="margin-top:15px;">Submit</button>
<div class="spacer"></div>
</form>
<?php
$time = $_POST['time'] + $_POST['break'] ;
$email = $_POST['email'];
$formcontent=" From: $time ";
$recipient = $email;
$subject = "Contact Form";
$mailheader = "From: $email
";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo "Thank You!" . " -" . "<a href='form.html' style='text-decoration:none;color:#ff0099;'> Return Home</a>";
$time2 = strtotime($time)+ strtotime("08:30");
$result = date("H:i",strtotime($time2));
echo $result;
?>