Create a PHP Contact Form Using FrontPage
Creating a PHP Contact Form Using FrontPage
Introduction
Our server architecture does not support contact forms created with FrontPage using the webbot feature to submit form results. However, you can add a contact form to your website even if created with FrontPage by using a PHP contact form that utilizes the phpmail()
function to send emails. This article explains how to achieve this.

Step-by-Step Instructions
1. Activate the Forms Toolbar
Start your FrontPage and show the "Forms" toolbar. To turn this toolbar on, go to View > Toolbars > Forms. You can also right-click on any current toolbar and select the Forms toolbar. You can move the toolbar around on your screen or dock it to your preferred position.
2. Create a New Form
Click on the "Insert Form" button in the Forms toolbar. This will insert an empty form with Submit and Reset buttons into your page.
3. Configure Form Properties
- Right-click anywhere on your new form and choose Form Properties.
- Change the Form Name: to
contact
. - Click on the Options button.
- In the Action: box, type
form.php
. - Click OK to save your options.
- Click OK again to save your changes to the Form Properties.

4. Create form.php
The form.php
file should be placed in the same directory as the contact form and should contain the necessary PHP code to process the form submission using the phpmail()
function.
5. Example HTML Code
<form action="form.php" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="message">Message:</label>
<textarea id="message" name="message" required></textarea>
<input type="submit" value="Send">
<input type="reset" value="Clear">
</form>
Tags: create contact page, email form, FrontPage, PHP contact form, phpmail(), web development, web forms