This is a little difficult to describe, but here goes.
I am creating a help forum that allows a user to type information in a form. The info the user types into the form field is written to a MySQL database when the user hits the submit button.
I then use PHP to retrieve the info from the database and display it in HTML format
Ex.
<?
print "$forminfo";
?>
PROBLEM
When a user puts in actual HTML code in the form, and the HTML code is written to the database, displaying the code using PHP will parse the HTML instead of printing out the html code that the user initially typed in.
In other words,
<a href='images/somepic.jpg'>Click Here</a>
Will print a link to "sompic.jpg" when displayed in PHP instead of printing the exact html code as I desire.
Can someone direct me to info about how to print the exact html code drawn from the database rather than have it parse like normal html.
I am sure the solution is simple, but it is escaping me.
Thanks.