The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I have made a form that I would like to submit certain information. I set it up to it emails all the info to a certain email address. Now that all works perfectly. What I need to find out is how to install a cgi script on my web server so that I can designate what page the user is sent to depending on wether the information is correct or not. I would like a "Info sent" page and a "Error w/ info" page. Any help is greatly appreciated. Thank you...

You only need to omit the 'action' attribute from the form tags and check the fields upon submission (either through onSubmit or onClick, dependent upon whether you are using a submit or regular button).

If this is not what you are looking for, I will move this thread to the server-side forum.

As pointed out in both Vinny's post and my own above, this can be accomplished fairly straightforwardly in JavaScript.

My suggestion to go server-side on this is based largely on the fact that (at least by indication in our logs) a significant number of people still shut JavaScript off in their browsers.

If this is a reasonably important function for you, taking it over to a Perl or PHP script server-side circumvents the possibility of failure in those cases where JavaScript is disabled by the visitor.