Re: Simpler way to validate form fields? [message #179794 is a reply to message #179789] |
Wed, 05 December 2012 10:32 |
Gilles Ganault
Messages: 27 Registered: September 2010
Karma:
|
Junior Member |
|
|
On Tue, 04 Dec 2012 19:07:17 -0500, Jerry Stuckle
<jstucklex(at)attglobal(dot)net> wrote:
> In most cases I prefer isset() over empty - an array element may be set
> but may not contain data. Those can be two different errors.
>
> Otherwise, I do pretty much the same thing. Be sure to validate the
> contents also, not just the presence of the value.
Good to know. Thanks for the input.
|
|
|