The Form <form
action="http://our-server/cgi-stuff/mailer" method="post"><dl> <dt> Your Email <dd> <input name="email" size="50">
<dt> Filename <dd> <input name="file" size="50"> </dl> <input type="submit" value="Submit"> </form> The Script #!/bin/sheval `proccgi.sh $*` mail $FORM_email < $FORM_file cat - << \END
echo Content-type: text/plain echo echo done. END As you can see, after the call to
proccgi.sh, the email address from the form is stored in the shell variable $FORM_email, and the file name is in $FORM_file. |