|
|
|
Our support staff has responded to your request, details of which are described below:
| Discussion Notes | | Support Staff Response | Dear Liu Wei,
Thank you for contacting Online Support.
Upon reviewing your inquiry, at this time in order to determine your question we will need you to be more specific to what it is you're having trouble with or wanting to accomplish. I apologize for the inconvenience. In the meantime, I have provided additional information regarding connecting to your database, and using form mailers.
If you are experiencing trouble with your email accounts, it could be because your domain name is using the wrong MX records. Use the following instructions to have them updated automatically:
Once logged in, follow these steps:
- In the My Products section, click Email.
- On the Manage Email page, click Manage Account next to the account you want to change. The Email Control Center displays.
- Go to the Domains tab.
- Select the email account you want to verify MX records for, and then click Server Addresses.
- Click Update my MX records for me to automatically update your MX records.
Note: Changes to the settings of a domain take an average of 48 hours to become effective because of the number of networks involved, and because these networks are controlled by several different agencies. This delay applies to all domains with any Registrar. Please allow for this delay when planning web sites or configuring a domain to work with your services.
Use the following instructions to view our sample connection strings:
•Select 'Hosting' from the My Products section
•Click on the Manage Account link for the hosting account you need to work with
•Select the type of database you are using from the Databases menu
•Under the actions column, click on the pencil of the database you wish to work with
•Click on the Configuration icon in the silver tool bar
•View the different ways to connect to your database
Two non-CGI form mailers are included in Linux shared hosting account default files: webformmailer.php and gdform.php. They reside in the root directory of your hosting account. Incorporating either of these scripts into your website creates a form to capture user information and email it to a specified address.
For more information about designating the destination email address, see Specifying an Email Address for the PHP Form-Mailer.
Note: webformmailer.php is for use with accounts running Hosting Configuration 2.0 and above, only. For information, see What functionality does Hosting Configuration 2.0 provide? and How do I upgrade my hosting account to run Hosting Configuration 2.0?
webformmailer.php
To Use webformmailer.php
- Create a Web form, assigning unique names to your form fields.
- In the form tag, assign /webformmailer.php to the action attribute and set the form method to post:
<form action="/webformmailer.php" method="post"> - In addition to the form fields you create, there are three hidden elements you can use.
form_format determines in what format the information is delivered. Its values are 'text', 'csv', 'html', 'xml', and 'default' (same as 'text').
form_order dictates in what order the fields are reported. Its values are 'default' (the same order as they appear on in the form), 'alpha' (alphabetized by field name) or a comma-separated, case-sensitive list of all or some field names.
form_delivery determines the frequency and packaging of delivery. All form submissions are sent via an attachment. You can specify the form_delivery variables as one of the following: 'digest', 'hourly_digest', and 'daily_digest'.
For example:
<form action="/webformmailer.php" method="post">
<input type="hidden" name="subject" value="Submission" />
<input type="hidden" name="redirect" value="thankyou.html" />
First Name: <input type="text" name="FirstName" />
Last Name :<input type="text" name="LastName" />
Email: <input type="text" name="email" />
Comments: <textarea name="comments" cols="40" rows="10">
Type comments here.</textarea>
<input type="submit" name="submit" value="submit"/>
<input type="hidden" name="form_order" value="alpha"/>
<input type="hidden" name="form_delivery" value="hourly_digest"/>
<input type="hidden" name="form_format" value="html"/>
</form>

gdform.php
To Use gdform.php
WARNING: The gdform.php file cannot be recovered if it's deleted.
- Create your Web form as normal and assign unique names to your form items.
NOTE: Keep in mind that our form-mailer script will sort the names of your form items alphabetically when it composes the email message. This is the order of precedence: uppercase letters, lowercase letters, numbers. - For the form action line, enter /gdform.php. For example:
<form action="/gdform.php" method="post"> - Set the form method to "post."
- In addition to the fields you create in your form, there are three special fields that you can use: subject, redirect, and email.
Subject. Controls the subject line in the form email.
Redirect. Controls the page that your visitors will see after they submit the form.
Email. Controls the return address for the form email.
For example:
<form action="/gdform.php" method="post">
<input type="hidden" name="subject" value="Form Submission" />
<input type="hidden" name="redirect" value="thankyou.html" />
<p>First Name:<input type="text" name="FirstName" /></p>
<p>Last Name:<input type="text" name="LastName" /></p>
<p>E-Mail:<input type="text" name="email" /></p>
<p>Comments:<textarea name="comments" cols="40" rows="10">
Type comments here.</textarea></p>
<input type="submit" name="submit" value="submit"/>
</form> - Save and upload your file to your hosting account.

For information on reinstalling your default scripts, see How Do I Reinstall the Default Scripts Directory?
Please let us know if we can help you in any other way.
Sincerely,
Lance P.
Online Support Representative
|
|
[ 本帖最后由 djgreat 于 2010-11-24 09:53 PM 编辑 ] |
|