ing wrote:
> On Mon, 02 Aug 2010 08:38:14 -0400, "Jonathan N. Little"
> <> wrote:
>
>> ing wrote:
>>> mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
>>> echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
>>> ?>
>>
>> This would be much better handled at a.c.l.p, but if you are using
>> server side don't use META redirects, use PHP's header function:
>>
>> $url='http://example.com/WhereYouWantToGo.html';
>> header("Location: $url");
>>
>> <http://www.php.net/manual/en/function.header.php>
>
> Srry but you've completely baffled me and the web link is even
> worse.The fact that I use Expression Web should tell you I'm not up on
> coding. What is a Meta redirect? Where do I have them? Does your
> header need to go in the HTML (calling) part of the PHP code part? How
> do I type it if where I want it to go is an email to my inbox? I don't
> want a web page, I want a message sent. TIA.
After the line:
mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
You are echoing in PHP:
echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
That essentially create a HTML page use just this META tag redirect.
This is NOT the way to redirect to the "response|thank you|your order
been sent" page. PHP, (You do know you are using PHP, right?*) can not
only send HTML output but can send info via the server headers that
precedes the HTML output. That is what you want to do here, not send
HTML output to do the redirect but send response headers to do the
redirect, i.e. in place of your echo statement you want:
header("Location: $url");
Note*: Expression Web or any other misnomer WYSIWYG editor is *not* a
substitute for know what you are doing. If you are going to use more
than just static HTML and use server-side scripting like PHP in your
pages, you really have to learn a bit about PHP. The manual link is a
good place to start. Plenty of tuts on the web. I suggest you kit a few,
else you could inadvertently hand the hackers a spam machine...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com