(please read entire post) I have two pages on my site that include submitting forms... one feedback and the other story submission. The page for submission works great, except that the screen that pops up after they hit submit saying "Thank you for submitting" allows the reader to go back or close out. Obviously if they close out, they close out of the site. I want this window to close out and return to the last page they were on. If someone could tell me how to correct this, that would be great. Otherwise, it works great and I receive the emails from the submissions.
The other page, feedback, is not working at all. I set it up the same as the submission page, except of course the email address in the code is different along with the subject line. Here's the code for the form object properties for the feedback:
<FORM NAME=Feedback METHOD=POST ACTION="feedback.php">
<DIV style="position:absolute; left:141px; top:345px; width:78px; height:30px; z-index:9" align="left" align="top">
<INPUT type="submit" name="Submit" value="Submit">
</DIV>
<DIV style="position:absolute; left:23px; top:21px; width:310px; height:307px; z-index:10" align="left" align="top">
<TEXTAREA name="Feedback Form" style="WIDTH: 305px; HEIGHT: 302px" rows=21 cols=35>Write feedback here.</TEXTAREA>
</DIV>
</FORM>
and here's the notepad file for this feedback form that has been saved as feedback.php, uploaded and currently resides in the lifeatfifty folder (same place as the other notepad file that seems to be working for my submission page):
<HTML>
<HEAD>
<TITLE>Thank you for your Feedback</TITLE>
</HEAD>
<BODY>
<H2>Thank you for your feedback.</H2>
<?PHP
$email = $HTTP_POST_VARS;
$mailto = "[email="feedback@lifeatfifty.com"]feedback@lifeatfifty.com";
$mailsubj = "Feedback";
$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>
I did a copy and page for both codes, so I know they're identical except for the changes I made to the email, etc.
What happens is that when you type something in the feedback box, the url changes to www.lifeatfifty.com/feedback.php but nothing else happens. My site is www.lifeatfifty.com... if someone could go to the feedback page and see what it's doing, I would be very grateful. Thank you in advance for your help and assistance.
Patti
The other page, feedback, is not working at all. I set it up the same as the submission page, except of course the email address in the code is different along with the subject line. Here's the code for the form object properties for the feedback:
<FORM NAME=Feedback METHOD=POST ACTION="feedback.php">
<DIV style="position:absolute; left:141px; top:345px; width:78px; height:30px; z-index:9" align="left" align="top">
<INPUT type="submit" name="Submit" value="Submit">
</DIV>
<DIV style="position:absolute; left:23px; top:21px; width:310px; height:307px; z-index:10" align="left" align="top">
<TEXTAREA name="Feedback Form" style="WIDTH: 305px; HEIGHT: 302px" rows=21 cols=35>Write feedback here.</TEXTAREA>
</DIV>
</FORM>
and here's the notepad file for this feedback form that has been saved as feedback.php, uploaded and currently resides in the lifeatfifty folder (same place as the other notepad file that seems to be working for my submission page):
<HTML>
<HEAD>
<TITLE>Thank you for your Feedback</TITLE>
</HEAD>
<BODY>
<H2>Thank you for your feedback.</H2>
<?PHP
$email = $HTTP_POST_VARS;
$mailto = "[email="feedback@lifeatfifty.com"]feedback@lifeatfifty.com";
$mailsubj = "Feedback";
$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>
I did a copy and page for both codes, so I know they're identical except for the changes I made to the email, etc.
What happens is that when you type something in the feedback box, the url changes to www.lifeatfifty.com/feedback.php but nothing else happens. My site is www.lifeatfifty.com... if someone could go to the feedback page and see what it's doing, I would be very grateful. Thank you in advance for your help and assistance.
Patti
Comment