|
|
|||||||||||
Working with the CGI Email script
Way2Host's CGI Email script enables you to incorporate a form into your Web page that users can fill out and then submit to you via email. For example, you could have a simple order form that prompts your visitors for the necessary information and then sends the information to your email address. SiteControl's CGI Email Manager makes it simple for you to specify the form fields and email address to which the form is submitted. It also enables you create new form fields.
- In SiteControl, click Website Tools, then click Free Scripts.
- When the CGI Scripts Manager displays, click CGIEmail to display the CGI Email Manager.
- Click the link to create a new form. The following page appears.
- In the Form Name field, enter a name for this form.
- By default, the form includes three fields for the user to enter their email address, name and phone number. The "Variable Label" is the descriptive label that will appear next to the text box. The "Text to Display" is the default text that will display in the text box. The user will overwrite this text with their own information. Modify the values of these fields as necessary. If you do not want to use any of these these fields, click Delete to remove it from the form.
- To add a new, custom field to the form, click Add a new field.
- Enter the variable name. This is the name the script will use to identify the variable and its values. Then, enter the label and text to display.
- Repeat step 7 until you have added all the desired fields and then click Go On To Mail. A page similar to the following appears.
- Use this page to fill in the To, Subject and body of the email. You can use any of the variables that you defined on the previous page. To use one of the variables in the body of the email, you must include it in brackets ( [brackets] ) and must type it exactly the same. For example, [name] is not the same as [Name].
- When are finished, click Submit. The CGI Email Manager generates the HTML code that you will need to paste into the page where you want the form to appear.
|
Way2Host |