> So I would have to write a seperate if condition for each form input field i wanted
>to require? that doesn't make for a very dynamic script...
>
> > if(!(isset($name) && isset($address) && isset($phone)) {
> > echo "You left one empty.";
> > }
Reality Check: We write code to solve real
define the variable as an input from a form
2. in the required fields array
- Original Message -
From: "George Whiffen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 21, 2001 7:28 AM
Subject: Re: [PHP] How do I convert from perl to php? - Reality C
TED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, November 21, 2001 7:28 AM
> Subject: Re: [PHP] How do I convert from perl to php? - Reality Check &
> Taxation
>
> > So I would have to write a seperate if condition for each form input field
> i wanted to requ
n-programmer how to add another
> if statement or condition when they could simply add the field to the array?
>
> And actually you only have to change the name in 2 places.
> 1. you define the variable as an input from a form
> 2. in the required fields array
>
> - Origin
4 matches
Mail list logo