Re: Take a Peek, and Help Fine Tune...
Here's the official tutorial:
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.htmland 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
and here's my CORRECTED script, saved as "submission.php" in notepad, as that is the name of the page saved in BV....correct?
<HTML>
<HEAD>
<TITLE>Project Submission</TITLE>
</HEAD>
<BODY>
<H2>Thank You For Submitting To Word Pointe!</H2>
<language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "DrawingBoard@WordPointe.com";
$mailsubj = "Project Submission";
$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);
</script>
</BODY>
</HTML>
I feel like doing it completely over, using your sheets. Is the email address need to be in lower case?? hmmm....
Since the site is a sub-domain, this notepad php file doesn't need to go in the sub-folder does it? I can just have it out in the main public as long as I never create conflicting files, right?
Here's the official tutorial:
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.htmland 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
and here's my CORRECTED script, saved as "submission.php" in notepad, as that is the name of the page saved in BV....correct?
<HTML>
<HEAD>
<TITLE>Project Submission</TITLE>
</HEAD>
<BODY>
<H2>Thank You For Submitting To Word Pointe!</H2>
<language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "DrawingBoard@WordPointe.com";
$mailsubj = "Project Submission";
$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);
</script>
</BODY>
</HTML>
I feel like doing it completely over, using your sheets. Is the email address need to be in lower case?? hmmm....
Since the site is a sub-domain, this notepad php file doesn't need to go in the sub-folder does it? I can just have it out in the main public as long as I never create conflicting files, right?
Comment