I am posting a time value from one page to another using html input type time. The posted value is displaying correctly but it doesn't show any output after applying strtotime().
Here is my HTML code
<form action="test.php" method="post">
<input type="time" name="usr_time1">
<input type="time" name="usr_time2">
<input type="submit">
</form>
and this is my php code
<?php
echo $t1= $_POST['usr_time1']."<br>";
echo $t2= $_POST['usr_time2']."<br>";
echo $timestamp = strtotime($t1);
What is wrong here..?