- Topic: PHP Form Mailer
In order to use our PHP form-mailer, you must specify an email address where you want the contents of your form sent to.
To Specify the Email Address for the Form-Mailer
- Log in to your Account Manager.
- From the Products section, click Web Hosting.
- Next to the hosting account you want to use, click Launch.
- In the Content section of the Hosting Control Center, click the Form Mail icon.
- Under the Forms Email Address section, type the email address you want to use with your form-mailer.
- Click Continue.
- Verify that this is the address you want to use with your form-mailer, and click Update.
Thank you for contacting Online Support. Your current account does not support PHP. You will need to enable IIS7 if you wish to use PHP. You can upgrade to IIS 7 from IIS Management in the Hosting Control Center.
Existing Windows Shared Hosting accounts running IIS 6 can upgrade to IIS 7. For information on IIS 7, see What is IIS 7?
NOTE: IIS 7 is not compatible with FrontPage Extensions or MS SQL 4.0 databses.
To Upgrade Your Windows Shared Hosting Account to IIS 7
To Use gdform.php
gdform.php file cannot be recovered if it’s deleted.
- Create your Web form as normal and assign unique names to your form items.
- 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"/>
- Save and upload your file to your hosting account.
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 information on reinstalling your default scripts, see How Do I Reinstall the Default Scripts Directory?