Premium Web Builder comes with a basic form called “feedback” but if you want advanced features such as radio buttons, check boxes, and drop down menus, you’ll have to use your own custom form. The easiest method to do this is to use the FormMail script. This is simply the script that tells the server to send the contents of the form to a specified email address. For more information on FormMail please see our tutorial.

Once you have completed the steps outlined in the FormMail tutorial, you’ll be ready to create the form and insert into a page using the scripts module. Here’s our example form after we completed the FormMail tutorial:

<form method="POST" action="http://builder.inmotiontesting.com/cgi-bin/FormMail.pl">

<input type="hidden" name="recipient" value="xxx@xxxx.com" / >

<input type="hidden" name="redirect" value="http://builder.inmotiontesting.com" / >
Name:<input type="text" name="name" size="19"><br><br>

E-Mail:<input type="text" name="email" size="19"><br><br>
 
<input type="checkbox" name="meal_selection" value="breakfast"> Breakfast<br>
<input type="checkbox" name="meal_selection" value="lunch">Lunch<br>
<input type="checkbox" name="meal_selection" value="dinner">Dinner<br><br>
<p>Would you like to leave a tip?</p>
<input type="radio" value="yes" name="leave_a_tip"> YES<br>
<input type="radio" value="no" name="leave_a_tip"> NO<br><br> 
<p>What type of drink would you like?</p>
<select size="1" name="drop_down">
<option>Water</option>
<option>Tea</option>
<option>Soda</option>
<option>Wine</option>
</select><br><br>
Comments:<br>
<textarea rows="9" name="comments" cols="30"></textarea><br>
<br>
<input type="submit" value="Submit" name="submit">
</form>

So now, let's break down to form so you can understand it a bit better. The first line of code tells the web browser where to post the contents of the form to the FormMail script. You'll want to make sure you use the correct path to FormMail.

<form method="POST" action="http://builder.inmotiontesting.com/cgi-bin/FormMail.pl">

The next line of code in the form sets the recipient address. This is the email address you want the results of the form to be sent to. Make sure you replace xxx@xxxx.com with the actual email address you want it to be sent to:

<input type="hidden" name="recipient" value="xxx@xxxx.com" / >

This next bit of code redirects the visitor to a page after the form has been submitted:

<input type="hidden" name="redirect" value="http://builder.inmotiontesting.com" / >

Now the rest of the script is the actual form on the page that the website visitor will see. The next block of code below asks the visitor for their name and email:

Name:<input type="text" name="name" size="19">

E-Mail:<input type="text" name="email" size="19"><br><br>

The following code block contains the check boxes on the form. Your websites visitors can check multiple boxes:

<input type="checkbox" name="meal_selection" value="breakfast">Breakfast
<input type="checkbox" name="meal_selection" value="lunch">Lunch
<input type="checkbox" name="meal_selection" value="dinner">Dinner

In the following code snippet we display radio buttons for visitors to make a choice between options:

<input type="radio" value="yes" name="leave_a_tip"> YES
<input type="radio" value="no" name="leave_a_tip"> NO

Now, we have the section of code which displays the drop down menu on our form:

<select size="1" name="drop_down"><option>Water <option>Tea <option>Soda <option>Wine </select>

In the last section of code, we have a text area for comments and we close the form tag:

<textarea cols="30" name="comments" rows="9">
<input type="submit" value="Submit" name="submit"> </form>

Now that your contact form is complete, you'll have to insert it into the page you want the form to show up on in Premium Web Builder. You'll use the scripts module in Premium Web Builder to do so.

If you need further assistance please feel free to ask a question on our support center.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!