This is code from index.php file. The Javascript calendar is working.
In the form I'm trying to pass value to PHP.
But when I do echo $_POST['date3'], the value is empty.
What is the problem here?
<form method="post" action='index.php'>
<div style="background: #995; color: #ffa; font-weight: bold; padding: 2px;">
Left Panel
</div>
<br /><br />
<!--
if you remove this comment and leave the following HTML code
you will see a horrible effect, in all supported browsers (IE and Mozilla).
-->
<SELECT multiple size="4" name="component-select">
<OPTION selected value="Component_1_a">Component_1</OPTION>
<OPTION selected value="Component_1_b">Component_2</OPTION>
<OPTION>Component_3</OPTION>
<OPTION>Component_4</OPTION>
<OPTION>Component_5</OPTION>
<OPTION>Component_6</OPTION>
<OPTION>Component_7</OPTION>
</SELECT>
this select should hide when the calendar is above it.
<br /><br />
<b>Date #3:</b> <input type="text" name="date3" id="sel3" size="30"><input type="reset" value=" ... " onclick="return showCalendar('sel3', '%Y--%m--%d');"> Y--M--D single click
<br />
<input type='submit' value='Go PHP'>
</form>