L
Lukelrc
Hi,
I have a form containing (among other things) date fields for which i
have a date validation script. What i need to happen is when the user
presses the submit button the date validation script is run and only
if the date is correct is the form submited.
What i have done so far is:
-Chagned the button type from 'submit' to 'button'
-put the date validation vbscipt into a sub buttonname_onclick
-added to the date validation script code that says if the date is
valid then
window.location.href = "nextpage.asp"
it all works fine except that the new record added to the database
contains no values. It seems that the form does not submit properly
when i use window.location. Does anyone know to make a form submit
using window.location, or suggest another workaround?
Luke
I have a form containing (among other things) date fields for which i
have a date validation script. What i need to happen is when the user
presses the submit button the date validation script is run and only
if the date is correct is the form submited.
What i have done so far is:
-Chagned the button type from 'submit' to 'button'
-put the date validation vbscipt into a sub buttonname_onclick
-added to the date validation script code that says if the date is
valid then
window.location.href = "nextpage.asp"
it all works fine except that the new record added to the database
contains no values. It seems that the form does not submit properly
when i use window.location. Does anyone know to make a form submit
using window.location, or suggest another workaround?
Luke