To have the form save the results in a text file...
You need a page of html to put the form into. You can either put it in an existing page, or put it in a new page. To put it in a new page, it's easiest to create a new page in the Angelfire Web Shell, using the Advanced Editor. If you have to use the Basic Editor you will only be able to put the form in the "Text Block" area of a Basic page.
Copy and paste the code clipping from above into your page. This form code is just an example - you will need to adjust it to fit your needs - you can add new form elements, but you have to make sure that you are using the exact formatting as our example.
IMPORTANT: the "name" of your form elements must always be one word names. For example
BAD: <input type="text" name="street address" />
GOOD: <input type="text" name="street_address" />
If you copied and pasted the clipping from our script library exactly, it is already set up for sending the data to a text file in your angelfire account. The first line of the form tags should be:
<FORM ACTION="/cgi-bin/script_library/form_handler_file" METHOD=POST />
You can specify the filename of the file where the info is put with a hidden input named "savefile", like this:
<input type="hidden" name="savefile" value="visitors.txt" />
If you leave this line out, the form data will be
stored in your directory as the URL of the referring page with a .txt extension (for example - if your form was at
https://www.angelfire.com/ma/superdude/myform.html, the output would be stored in myform.html.txt.).
You DO NOT need to create this file first - the first time the form
is used, it will create this file, and every time after that, the form
will add the new data to the end of this file.
Now you have to decide what you want to happen after someone uses your form - what page you want to jump to. You probably want to create a new page that says something simple like "Thanks for filling out my form! Now check out these links to other fun stuff on my site!" or something like that. Edit this tag:
<input type="hidden" name="end_display" value="http://www.YOURLINK.com" />
to include the URL of the page you want displayed after the visitor submits a form, putting the page URL where it says "http://www.YOURLINK.com".
You can use a hidden input named "required" to list any inputs that you want to make sure that the user fills out. If a required field doesn't get filled in, the user will get an error telling him or her to try again. In our example form tags the "email" form element is required. You can also use a hidden input named "order" to specify the order in which you want data from the form to be submitted to you. Otherwise, it will be sent to you in a random order.
That's it! Test out your form now. Then go and point your web browser to the https://www.angelfire.com/ma/superdude/myform.txt page (or whatever your output page will be called, based on how your set the parameters) and see if the data was stored there. IMPORTANT: with the file method, anyone else who knows how angelfire forms work can go see the text file also, so you definitely should not use this method for "secret" or "private" information.