How to print normally html code ?
Hello,
I want, using php, to print html code as it appear in an html page.
Per example in the following php code:
if ($myhost=="www.fur4x-hebergement.net")
{
echo "free hosted at <a href=\"
http://www.fur4x-hebergement.net/\"
TARGET=\"_blank\"\>Fur4x</a\>";
}
Is it possible to have this kind of coding ?:
if ($myhost=="www.fur4x-hebergement.net")
{
print until _THELABEL
free hosted at <a href="
http://www.fur4x-hebergement.net/"
TARGET="_blank">Fur4x</a>";
.._THELABEL
}
because i did not know always which character must be preceded by "\"
in the "echo" mode.
.
Relevant Pages
- Re: [PHP] Re: Returning response includes HTML form data
... When I run it from a Windows client program, the response I am seeing is not only the "someresponse" above but also has the entire HTML form in the PHP file appended to it. ... echo "SomePHPFunction called for $param1 OK.\n"; ... Am I not 'responding' to the form in my PHP code based on the input parameters to the form in my PHP code? ... (php.general) - Re: [PHP] POST + QUERY
... Dan Shirah wrote: ... However I have verified the correct spelling both in the database and in the ... PHP code and they are identical and when I print_r it shows that there is a ... >> the above echo still returns nothing. ... (php.general) - Re: Problem with some codes
... Here's some PHP code: ... but when i execute this script and when the sql doesn't return any fields ... - check the number of rows returned with mysql_num_rows, then only echo ... (php.general) - Re: php in database entry...
... i have 10.000 entries and i currently need it for only 1! ... that instead of echo $extra_text i must use eval? ... without knowing a lot more about the constraints of the ... expression evaluator which cannot call any PHP code. ... (comp.lang.php) |
|