Call name in HTML
<FORM METHOD="POST" ACTION="http://mail.cen.uiuc.edu/cgi-public/mail">
<INPUT TYPE="hidden" NAME="next-url" VALUE="/~user/received.html">
<INPUT TYPE="hidden" NAME="next-url" VALUE="http://www.uiuc.edu/">
<INPUT TYPE="hidden" NAME="subject" VALUE="My survey results">
<INPUT TYPE="hidden" NAME="from-name" VALUE="Average Web user">
<INPUT TYPE="hidden" NAME="from-email" VALUE="jdoe@domain.com">
Overview
This form takes all INPUT, SELECT, and TEXTAREA fields with any name
and can email them to a nicknamed email account or write it to a file
in a specified directory. The form can force users to input data in certain
fields by adding "require:" before the name. "ignore:" before the name will
prevent the form from emailing or writing to file that fields data.
The nickname email accounts are controlled by me, simply ask and I can
create on for you.
The directory field where the script will store data is controlled by me, simply
ask and I can create one for you.
Usage for Emailing
<INPUT TYPE=hidden NAME="ignore:nickname" VALUE=(nickname I give you)>
<SELECT NAME="ignore:nickname"><OPTION<(nickname I give you)</SELECT>
ignore:nickname is used so we do not send ourselves the email address we
are sending the email to (because we already know this)
Usage for writing to file
<INPUT TYPE=hidden NAME="ignore:file" VALUE=(filename in directory you can name and create as desired)>
<INPUT TYPE=hidden NAME="ignore:directory" VALUE=(directory to put file, I assign)>
The filename is restricted to these characters:
numbers letters(upper and lower case) _ - : , spaces
all other characters are erased before writing the file to directory.
(so invalid characters will not prevent the script from working)
The file is saved as a tab delimited file. The script removes all line
returns and replaces them with html line breaks (ie, <BR>).
Examples