Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest edwinsweep

html tags into form fields with php

Recommended Posts

Guest edwinsweep
hi everybody, im making a website where you can leave posts behind.
all the posts are stored in a database!
but when i write down a html tag like <h1> in my post or any other
html tag it thinks it has to read it like html!
while i want it to show up on my forum like <h1> in my message and not being it put into the source code!
is there a easy way to do this?
thanks in advance Eddie!

Share this post


Link to post
Share on other sites
try
[a href=\"http://www.zend.com/manual/function.htmlspecialchars.php\" target=\"_blank\"]http://www.zend.com/manual/function.htmlspecialchars.php[/a]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.