Re: if conditional
| From: | Bob Irwin | Date: | Tue, 15 Oct 2002 09:57:16 +0000 |
| Subject: | Re: if conditional | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119999@lists.php.net to get a copy of this message | ||
If the code isn't working, its because you weren't using a $name in the
first if statement. Always the little things ! :)
But this should work...
if (!$name) {
print "<P>please enter your name.";
}
if (!$email) {
print "<P>Please enter you e-mail";
}
>
> > Hello,
> >
> > I would like to how to know how to create an if conditional with only
one
> > condition. Can some one tell me the way to do this. This is my previos
code
> > :
> >
> > <
> > if (!name) {
> > print "<P>please enter your name.";
> > }
> > exit;
> >
> > if (!$email) {
> > print "<P>Please enter you e-mail"
> > }
> > exit;
> >
> > ?>
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> Scanned by PeNiCillin http://safe-t-net.pnc.com.au/
>
> Scanned by PeNiCillin http://safe-t-net.pnc.com.au/
>
Scanned by PeNiCillin http://safe-t-net.pnc.com.au/