# Form - value from a javascript into MySQL

**URL:** <https://forum.kirupa.com/t/form-value-from-a-javascript-into-mysql/153800>\
**Category:** programming\
**Created:** [July 4, 2005, 8:19pm UTC](https://forum.kirupa.com/t/form-value-from-a-javascript-into-mysql/153800 "2005-07-04T20:19:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaykills](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kaykills/32/228_2.png) [@kaykills](https://forum.kirupa.com/u/kaykills)\
**Post date:** [July 4, 2005, 8:19pm UTC](https://forum.kirupa.com/t/form-value-from-a-javascript-into-mysql/153800/1 "2005-07-04T20:19:48Z")

</div>

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:

```auto
 <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
