# HTML Forms

**URL:** <https://boards.straightdope.com/t/html-forms/283019>\
**Category:** Factual Questions\
**Created:** [January 4, 2005, 1:22pm UTC](https://boards.straightdope.com/t/html-forms/283019 "2005-01-04T13:22:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hurricane74](https://avatars.discourse-cdn.com/v4/letter/h/77aa72/32.png) [@hurricane74](https://boards.straightdope.com/u/hurricane74)\
**Post date:** [January 4, 2005, 1:22pm UTC](https://boards.straightdope.com/t/html-forms/283019/1 "2005-01-04T13:22:02Z")

</div>

I need to develope forms, but before i do i have a couple questions. How do you get the form to check itself and how do i get it to redirect to a certain page if i am using a CGI program to mail it to an e-mail address?

---

<div class="post-metadata">

**Author:** ![friedo](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@friedo](https://boards.straightdope.com/u/friedo)\
**Post date:** [January 4, 2005, 1:24pm UTC](https://boards.straightdope.com/t/html-forms/283019/2 "2005-01-04T13:24:55Z")

</div>

You can either use Javascript to perform client-side form verification or do it server-side in the CGI script. To force a redirect, you can have your CGI script send a Location header to the client.

You can find plenty of examples of form-verifying Javascript code with a google search. For examples of manipulating response headers you’ll have to look at the documentation for the CGI interface of whatever language you’re using on the server.

---

<div class="post-metadata">

**Author:** ![xash](https://avatars.discourse-cdn.com/v4/letter/x/c6cbf5/32.png) [@xash](https://boards.straightdope.com/u/xash)\
**Post date:** [January 4, 2005, 6:43pm UTC](https://boards.straightdope.com/t/html-forms/283019/3 "2005-01-04T18:43:18Z")

</div>

Here’s the script you are looking for:

**BFormMail**  
[http://www.infosheet.com/iScripts.html](http://www.infosheet.com/iScripts.html)

It’s simple to configure and does what you need.

The above script is a based upon:

**FormMail**  
[http://www.scriptarchive.com/formmail.html](http://www.scriptarchive.com/formmail.html)

If you’re looking for something hosted and ready made, your options are:

[http://www.formdesk.com/](http://www.formdesk.com/)

and a hosted version of the above FormMail script:

[http://www.formmail.com/](http://www.formmail.com/)

---

<div class="post-metadata">

**Author:** ![jjimm](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jjimm](https://boards.straightdope.com/u/jjimm)\
**Post date:** [January 4, 2005, 7:06pm UTC](https://boards.straightdope.com/t/html-forms/283019/4 "2005-01-04T19:06:16Z")

</div>

> [@hurricane74](#):
>
> how do i get it to redirect to a certain page if i am using a CGI program to mail it to an e-mail address?

If you use the pre-written FormMail as mentioned above, the page to which you can make the browser redirect is simply a variable in the form.
