View Single Post
  #1  
Old 09-03-2005, 09:38 PM
Patti Johnson's Avatar
Patti Johnson Patti Johnson is offline
Sergeant Major
 
Join Date: Jul 2005
Posts: 95
Question Submitting Forms

Hello you wonderful forum helpers... Before anyone sends me (back) to the previously posted threads regarding the scripts for form submissions, let me say that I have read and re-read all of them. I have a feedback page on my site and have set the page properties file extension to php and on the object properties (for the form itself) set to action: feedback.php and method: post.

On the page html, I have placed on the inside body tag the following:
<?PHP

$email = $HTTP_POST_VARS[email];

$mailto = "feedback@lifeatfifty.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);

?>

After saving and publishing the page, uploading the notepad file called feedback.php (as designated in the thread), I still don't get the desired results. I fill in some text on the feedback form and hit the submit button. At that time I get an Internet Explorer window stating the following:

This form is being submitted using e-mail. Submitting this form will reveal your e-mail address to the recipient, and will send the form data without encrypting it for privacy. You may continue or cancel this submission.

When I hit continue, it takes me to my log in page for my email. When I log in, I simply have a "compose" window with my website's email address in the "to" field. Trying it from my laptop, I get the same IE window, but when I hit continue, it does nothing. Can someone help me please? Appreciative as always.
Reply With Quote