I
iam247
Hi
I have an asp page without any javascript. It posts the content of a
form to another page, which reads the form fields using Request.Form.
This is the form header:
<form name=form method=post action=RegDetails.asp>
I have tried to modify the form by adding javascript for password
validation. The script came from:
http://javascript.internet.com/forms/val-pass.html
The form header from this javascript is:
<form name=myForm onSubmit="return validatePwd()">
This header validates my passwords ok but obviously is missing,
method=post & action=RegDetails.asp
When have combined the to form headers to give:
<form name=myform method=post onSubmit="return validatePwd()"
action=RegDetails.asp>
This header still validates the password but does not Post to
RegDetails.asp
On pressing submit the form fields are sent via the url as a
querystring, back to the same form/page which opens blank.
I would appreciate help in using the javascript to validate my form but
still Post the form values to RegDetails.asp
Thanks ColinK
I have an asp page without any javascript. It posts the content of a
form to another page, which reads the form fields using Request.Form.
This is the form header:
<form name=form method=post action=RegDetails.asp>
I have tried to modify the form by adding javascript for password
validation. The script came from:
http://javascript.internet.com/forms/val-pass.html
The form header from this javascript is:
<form name=myForm onSubmit="return validatePwd()">
This header validates my passwords ok but obviously is missing,
method=post & action=RegDetails.asp
When have combined the to form headers to give:
<form name=myform method=post onSubmit="return validatePwd()"
action=RegDetails.asp>
This header still validates the password but does not Post to
RegDetails.asp
On pressing submit the form fields are sent via the url as a
querystring, back to the same form/page which opens blank.
I would appreciate help in using the javascript to validate my form but
still Post the form values to RegDetails.asp
Thanks ColinK