Jump to content


Photo

How can I send html code via a form ?


  • Please log in to reply
3 replies to this topic

#1 mgurain

mgurain
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 29 August 2004 - 11:32 AM

Hi all,,

How can I send html code via a form to a text field in my DB table ?

I tried to post it then displaying it from the db table but got amazing code (not the sent one) !!

thanks in advance,,

#2 morpheus.100

morpheus.100
  • Members
  • PipPipPip
  • Advanced Member
  • 145 posts

Posted 29 August 2004 - 02:05 PM

Dont use stripslashes or strip_tags in your insert script.

#3 mgurain

mgurain
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 30 August 2004 - 05:58 AM

Hi morpheus.100 ,,

thanks for your imediate help (keep it like that) :)

can you guide me getting some articles about : stripslashes & strip_tags ?

thanks in advance,,

#4 morpheus.100

morpheus.100
  • Members
  • PipPipPip
  • Advanced Member
  • 145 posts

Posted 30 August 2004 - 03:26 PM

php manual would be an excellent starting point, dont you think?
Whilst reading, also check out htmlentities




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users