Jump to content


html tags into form fields with php


  • Please log in to reply
1 reply to this topic

#1 Guest_edwinsweep_*

Guest_edwinsweep_*
  • Guests

Posted 23 May 2006 - 10:52 AM

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!

#2 Honoré

Honoré
  • Members
  • PipPipPip
  • Advanced Member
  • 66 posts
  • LocationAntwerp - Belgium

Posted 23 May 2006 - 11:08 AM

try
[a href=\"http://www.zend.com/manual/function.htmlspecialchars.php\" target=\"_blank\"]http://www.zend.com/manual/function.htmlspecialchars.php[/a]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users