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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to