PDA

View Full Version : im new so excuse my ignorance


diy1
07-20-2005, 10:53 PM
:confused:
Hopefully somebody can help - I have a secure area on a seperate site that uses cgi to read and process the form and then allows me to access the secure site and print off the form.
what i want to do is valuate the infomation on the form - to make sure that people have filled it out correctly - then send them an email copy of the information they have submitted before it is then sent to the secure site - i have some script but it is adapted from script that just sends an email - i want valuate the script and then send the form to the secure site to process.

Does any body understand what I mean? Can you help? Please

Aradon
07-20-2005, 11:07 PM
What do you mean by validate it?

If you want to validate data that is entered in the form you're going to want to use javascript pattern matching.

For example if you want to make sure a zip code is all numbers and five digits long, etc. You can also include a dialog box saying "Are you sure you want to continue" and they can hit yes or no, etc.

Then after the form is validated you can use the cgi to send the mail and send the info to the other cgi thing. But couldn't you use the secure site to send the mail too?

As far as I understood your question, that's what you want to do.

Note: If you really wanted to use perl for everything you could, however you would have to trouble yourself with generating the same form over again if the data is not validated, it seems to me that this part should be more on the client side

diy1
07-20-2005, 11:21 PM
well i'm using a form that's action goes to a peal script i could post the script for you but it is very long - would that help?

the peal script looks at what the user has entered in the form and checks that they have put an email address, and all the details that will be needed to process their form -

Aradon
07-21-2005, 02:03 PM
Okay, so as I understand it now..

You have:

1) perl script that validates the information

2) perl script that email's people

Why not analyze the code for each and combine?

If that's not the answer, then I'm afraid I don't understand your question. Can you explain it in a more verbose way of what you want the script to do?