Secure/validate input and output?

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
User avatar
deepthoughts
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Tue Sep 27, 2005 1:12 pm
Location: The northern part of Sweden (Piteå)

Secure/validate input and output?

Post by deepthoughts » Thu Nov 29, 2007 1:19 pm

I've started coding a simple calendar but there are some things missing. Since Joomla only is as strong as it's weakest component I really need to secure this thing

1. I need to validate that user has entered something/correct things in the fields that are required before submitting it and give the user a warning/response (external javascript I presume or are there a built in in Joomla function for this?)
2. I need to validate that user has entered something/correct things in the fields that are required when processing and inserting into the database
3. I need to secure the things that the users are entering (I've seen functions that seem to be related to this but I don't know how and when to use them)
4. I need to secure the things that are fetch from the database and outputted on the page (I've seen functions that seem to be related to this but I don't know how and when to use them)

All help and any pointers are gladly accepted. :)

EDIT: ("Doh!") Might be helpfull to add that I'm talking about Joomla 1.5
Last edited by deepthoughts on Thu Nov 29, 2007 9:34 pm, edited 1 time in total.
Stefan Nitsche
stefan_at_nitsche_dot_se

Post Reply