Adding Forms that EMail you the responses!
Get personal EMail from
Forms in your WEB PAGE.
Sample of some form items
Here's how to do it.
It's not that hard to put Forms with EMail responses in your own Web Page.
- First get your page working without the EMail response, just a form.
- Reference NCSA's fill-out-form Web Pages for more help.
- Add in:
<input type="hidden" name="Action" value="Test">
somewhere between <FORM...> and the </FORM>statements.
- Use a <form method="POST" action="/cgi-bin/mailit"> to test form action.
- Upload it ASCII MODE to your personal public_html directory.
- Test it, making sure all the entries apear as you like.
- Fill out the form and click on submit, verify output looks like you want.
- After it all works like you want, add the following:
- <INPUT TYPE="HIDDEN" NAME="UserName" VALUE="[email protected]">
- Delete <input type="hidden" name="Action" value="Test">
If you do not want the test output page.
- You may also add in the following lines to specify the next page.
<input type="hidden" name="Next" value="NEXT PAGE">
- Make sure:
- To set your EMail address, not YOURNAME (like in example).
- To set your next URL address, not NEXT PAGE (like in example).
(Format must be: http://www.domain.com/~user/page.html)
- Test it, check your mail, and you're done.........
File Output instead of EMail
- Get your page working using the above examples.
- Delete the line:
<input type="hidden" name="UserName" value="EMail Address">
If you don't want EMail, just the file.
- Add <input type="hidden" name="Path" value="/PATH/YOUFILENAME">
- Make a blank file at PATH and make it world writable.
- Test it and see if it works.
- The file is standard ascii delimited.
("value1","Value2","Value3")
You can get EMail and/or File Output and/or Web Page Output. Any or all.
Sorta, if you use 'Test', 'Next' does not goto, it just shows the location.
Here are several examples from NCSA, slightly modified for your eyes only.
- Example 1 Very simple text fill-out form.
- Example 2 Multiple text entry fields.
- Example 3 Multiple text entry fields and checkboxes.
- Example 4 With default entries.
- Example 5 Various text entry field attributes.
- Example 6 Multiple independent Fill-out Forms.
- Example 7 Radio buttons plus...
- Example 8 Password and Text Box.
- Example 9 Option Tags.
- Example 10 Single and Multiple Selector boxes.
- Example 11 Text Area Elements
- Example 12 With Image Elements
- Example 13 With Hidden Elements
- Example 14 Multiple Submit Buttons.
This page has been accessed times.
Best experienced with
Click here to start.