I am new to PHP. I have a PHP file(form1.php) with an HTML form. I would like to get the value of an input box(type=time), save it to PHP variable and transfer it to another PHP page without clicking the submit button. How can I access the input and do this with just PHP, Can i trigger some event?
Form.php
<?php
?>
<!doctype html>
<html lang="en">
<head>
<title>Form</title>
</head>
<body>
<form action="file2.php" method="post">
<input type="time" name="startTime">
</form>
</html>