RE: [PHP] Page Rederection Problems
| From: | Michael Roger C. Bianan | Date: | Sat, 15 Mar 2003 02:05:08 +0000 |
| Subject: | RE: [PHP] Page Rederection Problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139690@lists.php.net to get a copy of this message | ||
Hi Kelly,
It would be better if you just take off the second part,
the one enclosed in "<>".
Also, header("Location: location");
notice, Location starts with capital L .
Hope this helps,
miches:)
-----Original Message-----
From: Kelly Protsko [mailto:linuxbox@wepsoft.com]
Sent: Thursday, March 13, 2003 1:18 PM
To: php-general@lists.php.net
Subject: [PHP] Page Rederection Problems
Basically what I am doing is having a post call a page with the
following code to email the form contents.
I want the page to redirect back to the page it was sent from after the
mail has been sent. The top mailing part works fine but when I put the
header redirect in at the bottom I get an error on my post saying the
page doesn't exist anymore.
Any idea what would be causing this?
$formcontent = " $_POST[content]";
$toaddress = "someone@emailaddy.com";
$subjectline = "$_POST[subject]";
$headers = "From: $_POST[email]";
mail( $toaddress, $subjectline, $formcontent, $headers);
header("location: http://www.website.com <http://www.website.com/> ");
Thanks
Kelly