|
How
To Use The Public Scripts
The public
form handler script emails you the form a user fills out on the
web. If an email address is specified by the user a confirmation
of the entered data is sent back to them. If you wish a different
message for each form can be attached to this email.
When the user
submits the form, the script displays a generic thanks page. You
can override this, and design your own HTML thanks page with all
the usual web page design elements that you'd like to use. Or
you can redirect to any page on the Web.
NTUSGe
The "action=" part of your form must look like this,
<FORM METHOD="POST" ACTION="http://web.utk.edu/cgi-bin/form.cgi">
Mailing
Data
Put your email address in so the completed form will be emailed
to you by:
<INPUT TYPE="hidden" NAME="to" VALUE="username@utk.edu">
Subject
You can specify the title of your email by:
<INPUT TYPE="hidden" NAME="subject" VALUE="The
Email Subject">
Required
Field
To check and see if the user has filled out certain fields you
add something like:
<INPUT TYPE="hidden" NAME="Required" VALUE="last_name,first_name,email">
Response
Message
To add a message to the user along with what he filled out add
a line like:
<INPUT TYPE="hidden" NAME="BlurbFilePath"
VALUE="/something/extra.txt">
Return
Link/Title
To change the Generic return link and title you can add the lines:
<INPUT TYPE="hidden" NAME="ReturnLinkURL"
VALUE="http://web.utk.edu">
<INPUT TYPE="hidden" NAME="ReturnLinkTitle"
VALUE="Home Page">
Custom
Thank You Page
The display a different thank you page create it and add this
line pointing to that file
<INPUT TYPE="hidden" NAME="EchoFilePath"
VALUE="/homearea/public_html/thanks.html">
If you'd like to display the user data on your custom page include
the line
<!--ECHO DATA HERE-->
somewhere in your page coding.
Redirect
To Another Page
To redirect the user after filling out the form include the line:
<INPUT TYPE="hidden" NAME="RedirectURL"
VALUE="http://www.utk.edu">
A
Sample Form Page Would Look Like
Back
to Top
|