First off, this:
Code:
<input type="button" onClick="alert(this.form.orderdate.value)" value="Show date value passed">
Is just for testing/diagnostic purposes. The script itself creates a hidden input field with the date data. The name of that field is configurable and shown in red in the below call:
Code:
<script>DateInput('orderdate', true, 'DD-MON-YYYY')</script>
So, if the script is placed within your form and your form grabs the value of all of its fields, you are in business. Otherwise, you need to add something to your form processing routine so that it will grab the value contained in the orderdate field and do with it whatever it is that you want done with it.
Bookmarks