I need to make it so that when I echo a varable that contains HTML code, it displays it as text instead of compiling it and echoing it back as HTML.
-all help is great. -thanks
With or without tags?
With tags, it's just a matter of echo htmlspecialchars($htmltext);
Without tags, it's echo strip_tags($htmltext);
Use the strip_tags() function like; <?php echo strip_tags($string); ?>
Regards T. A. Barry
Get FREE domain with every hosting. So many features just for $79.99 per yr. www.BestPriceHost.com