PHP: How can I get the input of HTML time input : <p>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?</p>

<p>Form.php</p>

<pre><code> &lt;?php

    ?&gt;
&lt;!doctype html&gt;
&lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;title&gt;Form&lt;/title&gt;

  &lt;/head&gt;
  &lt;body&gt;

      &lt;form action="file2.php" method="post"&gt;

            &lt;input type="time" name="startTime"&gt;

      &lt;/form&gt;

&lt;/html&gt;
</code></pre>
