Read Me!

The Above tutorial is Part 1 of a 2 Part tutorial on how to create email forms. After you have watched part 1, Click Here to watch part 2. Please watch both tutorials "TWICE"

The below is the PHP script you will use for processing your forms data. It is required so that you will receive the results of your form in your email.

 
Instructions:

1) Lets say you create a form using BlueVoda and you name the page that the form is on "contact",
    You can name the page anything you like but for this example lets say you name it "contact".
  
    The full URL your visitor would type into their browser to get to the page your form is on would
    be the below....

      www.YourDomainName.com/contact.html
 

Change the form properties (in BlueVoda) to:
 
Action: contact.php   (replace the "contact" with whatever the page name is)
Method: POST
EncodingType:  (remove the text/plain, so the field becomes empty)

2) Now create a new file using Notepad and call it: contact.php

So now you will have two pages one called

www.YourDomainName.com/contact.html
and one called
www.
YourDomainName.com/contact.php

Enter the following code into the file (replace order@example.com with your own email address):

<HTML>
<HEAD>
<TITLE>Succesfully processed your order</TITLE>
</HEAD>
<BODY>
<H2>Thanks for your order!</H2>
 

<?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "
order@example.com";
    $mailsubj = "Enter Your Subject Here";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form:\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
        $mailbody .= "$key : $val\n";
     }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HTML>
 
3) Now use BlueFTP upload the above .php file to your web server and place it in your public_html
    folder.

Note: The above script must be uploaded to the server for it to work.
 
 Extra Help
 
Click Here to download a zip file containing the above PHP code. Simply....
  1) Open the PHP file with notepad
  2) Replace the above "BLUE" Items with your email and subject
  3) Save and upload the PHP file as instructed in the above #3
 

PLEASE NOTE:

The .html page that contains your form must have the EXACT same name as your .php page. For example If your form is on a page called feedback.html , the php page will be called feedback.php