Hey guys I've got somewhat of a problem I can't seem to get out of. I currently have a php form with a text-area which I want to put the following html into: <ul class="post"> <li><a href="lol.com">hello</a></li> <li><a href="lole.com">there</a></li> </ul> Code (markup): The form accepts the html but when it comes to displaying what I've put into the text area, it does not use the post class that i've used in the text area.. So the information I'm trying to display will be all messed up. Can anyone here help me out please?
I had to use stripslashes. http://www.dweebsonduty.com/new/htmlform.php <html> <head> <style type="text/css"> .post{ background: #cccccc; padding: 10px; border: black solid 1px; } </style> </head> <body> <form action="htmlform.php" method="post"> <textarea name="textarea"></textarea> <input type="submit" value="Submit"> </form> <?php echo stripslashes($_POST["textarea"]); ?> <div class="post">HI</div> </body> </html> Code (markup):
oh nvm i found the source of the problem. it appears I had PHP inside the HTML i was trying to put into the PHP form. lol