Creating Forms for the Web
In order to create a web form that works, you not only need to create a web form, but direct that form to send the information to the e-merge CGI script, which then looks for the merge.txt file that you create that tells it what to do with the information.After the form has been submitted you can also create a “Thank you” screen, called the display.txt file, that lets the user know that they have successfully sent their information. The basic process is as follows:A. Create a form using HTML:
- Use Dreamweaver to create basic form elements
- Never put spaces in any web file names
- Only use letters and numbers in file names
- Layout your form and name your variables FIRST
- Use simple names for all form objects
B. Create a merge.txt file for your form:
- Include all variables in the form of an email message
- Can be done in Dreamweaver, saved as .txt file
- Place variable names in brackets: [variable]
C. Create a display.txt file for your form:
- This is a simple web page that appears after submission
- It is important to tell the user the submission worked!
- Can be done in Dreamweaver, then saved as .txt file
- Place variable names in brackets: [variable]
- (to make your feedback customized!)
D. Connect your web form with e-merge:
Edit your HTML form to tell it what action to take:
<form name=”name” method=”post” action=”http://abacus.bates.edu/cgi-bin/e-merge
/path to files/merge.txt&display=
/path to files/display.txt”>
“name” = a name for your form (whatever makes sense)
/path to files/ = location on abacus of merge.txt & display.txt
E. EXAMPLE URL FOR FORM:http://abacus.bates.edu/~rrichar2/form/
F. EXAMPLE FORM TAG:
<form name=”formTEST” method=”post” action=”http://abacus.bates.edu/cgi-bin/e-merge
/~rrichar2/form/merge.txt&display=
/~rrichar2/form/display.txt”>
G. Publish all three files to the same web directory:
- index.html (HTML form), merge.txt, display.txt
- Never put spaces in any web file names
- Only use letters and numbers in file names
- Be sure permissions are set so that others may read
H. Test your work:
- Try every different combination of responses
- Be sure that your variables are coded correctly
- Always make sure the merge.txt file has your email address in it for testing purposes!
Categories
Tags
About
anti-virus
back-to-school
bradford
certificates
connecting
contact
FAQ's
file sync
firefox
forms
Gmail
groups
help
install
ios
iphone
ldap
lists
macintosh
paris
password
pdf
podium
presentation
proxy
remote access
scanning
security
setup
sophos
thunderbird
tips
user-guide
visitors
web
windows
wireless






