|
|
PERL CGI Tutorial
|
Contents Getting Started in CGISend HTML Page to Browser Parse HTML Form Saving to a File Open a File and Display Contents Using the Split Function Search a File Sort a File Display a Multi Line File in Tables Display a Multi Line File in a Textarea Working with Numbers Using Sendmail |
Adding the CodeThe Append method will work best with the CGI scripts that we've already created. Copy and paste the code below into parse_form.pl. (Add to bottom of script) Save parse_form.pl. Start server and load form.pl into the editor. Run form.pl several times. Then open names.txt with NotePad and note how the names are stored in the file. In the next lesson we'll learn how to open the file and restore the values to their original form. open (INFO,">>names.txt");
More InformationFor information on adding additional fields see CGI Script #2 in the CGI Script Gallery. |
|
|
|
|
| HTML TOC | Website Design Workshop | Home | |