Post The Code, And I can help
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
http://www.aftermath.net/~coma/ex.html
Go There, Right Click on the page, and view source. That will give you all the code to do the javascript for validating the email (making sure the box is not empty, and it has an @ sign, etc). It also validates all the other fields, EXCEPT for the comments box... but you can just remove those if's and it will still work fine.
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
However The Form i set up to set it up as email is the way to do it.... the thing is this: the form name (where it says MUST be in there for the javascript to work correctly. The thing is, it needs an ACTION so it knows who or what to contact with the information in the Form. Action should point to your 3rd party (most likely)
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
Ok,
My question to you is this: when they click "submit" what is supposed to happen?
note: Thanks.
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
When They click "submit" the page is supposed to pass that information to another program. That program can be a CGI, it can be an ASP file, it can even be another web page. What You need to know, is to who or what that information is going to go to? Is it going to be sent as an e-mail to someone? If so, how is it going to get to him?
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
Here is a tutorial that shows you how to validate foms using JavaScript. Just cut-and-paste the code and follow the instructions.
Form Validation using JavaScript
This includes a routine to validate e-mail addresses.
When a user clicks the Submit button, the JavaScript routine will validate the input before it gets sent to your e-mail handler or other script that will process the data.
Keep in mind that JavaScript is not a reliable way to do this if you need to assure that bogus information is not submitted. It is easy to turn off JavaScript in a browser and bypass any JavaScript validations.
Server side validation is an important second step to filter important data. That will require ASP, PHP, Perl or some other server-side language.
TopDogger
Junior Poster in Training
87 posts since Aug 2005
Reputation Points: 15
Solved Threads: 5