View Single Post
  #2  
Old 09-03-2005, 10:19 PM
Pablo's Avatar
Pablo Pablo is offline
Moderator
 
Join Date: May 2005
Posts: 507
Default

If you read the previous threads about this subjkect carefully you'll notice that you have to enter 'feedback.php' in the action field instead of mailto:you@youremail.com

Here's the complete instruction once again:

Change the form properties (in BlueVoda) to:
Action: feedback.php
Method: POST

EncodingType:
(remove the text/plain, so the field becomes empty)

Now create a new file using Notepad and call it: feedback.php
Enter the following code into the file:
<HTML>
<HEAD>
<TITLE>Thank you for your feedback</TITLE>
</HEAD>
<BODY>
<H2>Thank you for your feedback!</H2>
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "yourname@yourdomain.com";
$mailsubj = "Feedback form";
$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>
</HEAD>



Make sure your form contains an editbox with the name 'email'
Finally upload feedback.php to your web server.

Instead of create the feedback page using notepad you can also use BlueVoda:
http://www.vodahost.com/vodatalk/bluevoda-general-issues/809-help-forms.html
and scroll all the way down to see my last post.
__________________
Forum Moderator
BlueVoda Specialist
Reply With Quote