Click to See Complete Forum and Search --> : quick help w/validation script
IACI0001
03-25-2003, 06:51 PM
trying to install a good script onto a form page, but the errors don't pop up. I've tried many changes, but something is still wrong.
Also, the form is tied to a cgi script, not sure if that matters. I can send the form, and receive the confirmation from my website, but when I try entering the validation script, it doesn't work.
I'm thinking somewhere in the "onsubmit" area that I blew it.
I bet it's a 2 minute fix for the experts!!
I've attached the file that's giving me the grief.
IACI0001
03-25-2003, 08:23 PM
Dave, I did, and no errors occur. The script works perfect on a different form, but when applying it to this form, nothing.
Was hoping there was a glaring error, something that could be seen quickly.....
thanks.
g
IACI0001
03-25-2003, 08:43 PM
there lies my challenge....I can't get to my web folders from where I am (ports are blocked). I'll attach the file below......If you open it, save it as an html file, hit the submit button, then you'll see what happens.
You should get a confirmation back from my site (which is good, but all I'm trying to do is add in some quick validation....
I tried entering the code from the original form, which is in the instructions, but it knocks out the cgi functionality, where I try putting it.
<name=form onSubmit="return checkFields();">
IACI0001
03-25-2003, 08:55 PM
Dave, this was the original code that I was supposed to load (according to the install instructions):
<form name=form onSubmit="return checkFields();">
when used on the demo form, a thing of beauty....when in my form, disaster.
Dont' know what the form should be called in this instance.
thanks for the help so far.
:confused:
IACI0001
03-25-2003, 09:11 PM
http://javascript.internet.com/forms/validation.html
validator (http://javascript.internet.com/forms/validation.html)
IACI0001
03-26-2003, 09:01 PM
Dave - that's why you make the big bucks! I finally made progress at about 3 am, and you'r right. There was a problem with the "onsubmit" command, as it was on a separate line than the cgi command.
Also, renaming some of the form items helped.
All I was trying to create was a nice simple form that had some basic validation, sent back the info that was submitted nicely formatted (simple cgi script), and posted to an e-mail address in a way that I could read it .....finally got there!