|
Posted by Oli Filth on 11/23/05 21:21
Stefan Mueller said the following on 23/11/2005 18:07:
>>PHP echoes the string 'From: "User" <user@inter.net>', which is sent to
>>the browser.
>>
>>Browser receives this, and tries to interpret it as HTML (assuming page
>>has been delivered with text/html header).
>>
>>In HTML, by definition, anything within < > is interpreted as a markup
>>tag (even if it's an invalid tag), and therefore isn't shown.
>
>
> Okay, thanks for your explanation.
> Therefore my thinking was wrong that PHP removes all the PHP statements
> before the browser sees the generated code.
PHP does remove all the PHP statements!
There are no PHP statements in the string:
From: "User" <user@inter.net>
This is what gets sent to the browser.
--
Oli
[Back to original message]
|