change select value when press button : <p>i'm still Beginner at this
i have table and i select data between two date range using this code and its working fine for me</p>

<pre><code>$StartDate = "2016-01-01";
$EndDate =  "2016-12-30";
$result = mysql_query("SELECT *FROM users where submit_date BETWEEN '$StartDate' AND '$EndDate'") or die(mysql_error());
</code></pre>

<p>then i added 2 data picker and button</p>

<pre><code>echo "&lt;form method=post action=&gt;&lt;table&gt;".
"&lt;tr&gt;&lt;td&gt;Start Date : &lt;/td&gt;&lt;td&gt;&lt;input type=date name=StartDate value=$StartDate&gt;&lt;/td&gt;&lt;/tr&gt;".
"&lt;tr&gt;&lt;td&gt;End Date : &lt;/td&gt;&lt;td&gt;&lt;input type=date name=EndDate value=$EndDate&gt;&lt;/td&gt;&lt;/tr&gt;".
"&lt;tr&gt;&lt;td colspan=2&gt;&lt;input type=submit name=UpdateSelect value=Set&gt;&lt;/td&gt;&lt;/tr&gt;".
"&lt;/table&gt;&lt;/form&gt;";
</code></pre>

<p>now i need help with this
how to update the page when i press the sumbit button 
to start selecting from the new start date and end date.</p>

<p>i'm sorry for my bad english. 
and thanks</p>
