Thread
:
how can i display PHP code in a text field witout it bein executed?
View Single Post
07-22-2009, 12:50 AM
rowan
Too lazy to set a custom title
Join Date: Mar 2002
Location: Australia
Posts: 17,393
echo "<" . "?php\n";
?>
<your code here... don't include the leading and trailing ?php tags>
<?php
echo "?" . ">\n"
Be aware that if your displayed code has any HTML in it the browser will probably eat it up.
rowan
View Public Profile
Visit rowan's homepage!
Find More Posts by rowan