Working With Forms

Monday Mar 31st 2008 by DatabaseJournal.com Staff
Share:

Forms are how your users talk to your scripts. To get the most out of PHP, you must master forms. While PHP makes it easy to access form data, you need to take security measures since you cannot trust the data supplied by an HTML form.

[From Webreference]

Forms are how your users talk to your scripts. To get the most out of PHP, you must master forms. The first thing you need to understand is that although PHP makes it easy to access form data, you must be careful of how you work with the data.

A common mistake that novices make is to trust the data provided by an HTML form. If you have a drop-down menu that only allows the user to enter one of three values, you must still check those values. As mentioned in Chapter 3, you also cannot rely on JavaScript to stop people from sending whatever they like to your server.

The article continues at http://www.webreference.com/programming/php/working_with_forms/

Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved