if/else or javascript?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
christalix
Forum Newbie
Posts: 6
Joined: Tue Oct 13, 2009 3:50 pm

if/else or javascript?

Post by christalix »

okEnds
Last edited by christalix on Sun Oct 18, 2009 2:53 am, edited 1 time in total.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: if/else or javascript?

Post by superdezign »

Always use whitelists for user input. Save the data you are getting from the database for the dropdown menu and compare the user's selection against those values.
Post Reply