Jump to content


Photo

INSERT BASICS- REGEX etc...


  • Please log in to reply
1 reply to this topic

#1 mojito

mojito
  • Members
  • PipPipPip
  • Advanced Member
  • 74 posts

Posted 05 January 2006 - 05:40 PM

After basic javascript (clientside) verification what steps should I take with my data fields.

I would like some of the fields to be able to contain some basic formatting in HTML like </strong> etc...
This poses me a question as I cant just remove these characters. This html is (normally) comming from my WYSIWYG editor attached to my text field.

Is there a good resource that deals with this or better a brief list of key checks that should be made server side just before the INSERT.

Thanks for any insight you freaks.

PS If your in the cambridge area come and join a cool discussion forum at [a href=\"http://mycambs.com\" target=\"_blank\"]www.mycambs.com[/a]. Why is it cool? because it has some very interesting topics of discussion and members who challenge thought. It isnt into globalisation either we do welcome tree huggers and also corporate monkeys alike!



#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 05 January 2006 - 07:16 PM

I'm not sure I understand what you mean -- why does their WYSIWYG input need to be validated again? There's nothing wrong with storing HTML in a field from a DB perspective, as long as everything is properly quoted and the field length is sufficient. What did you have in mind?
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users