Form - value from a javascript into MySQL

Hi,

I have a small calendar generated in javascript. The page it is on takes all the variables in the form and uploads it to a MySQL DB. I have wasted a lot of time trying to figure out how to get the date that the calendar outputs into mysql.

Example of the form:

 <tr>
      <td height="24">Title:
           <input name="title" type="text" size="25" maxlength="25">
       </td>
</tr>
 <tr>
                <td colspan="3">Sequence:&nbsp;
                    <input type="text" name="priority" size="30">
                </td>
              </tr>
              <tr>
                <td colspan="3">Expiry Date:&nbsp;
				<script>DateInput('orderdate', true, 'MM/DD/YYYY')</script></td>
              </tr>
	         <tr>
               <td colspan="3">Document Name:&nbsp;
                    <input type="text" name="doc_name" size="30">
               </td>
              </tr>

How do I take the date from the javascript calendar and insert it like all my other variables??

Cheers
Michael