06142006 0506 GMT-6

Right. If any one of these is filled then that is ok. If they are all
empty then there is a problem. See, I only need one contact,
and they can choose which. If they choose no contact then I
repost these fields and they have to fill in one.

wade


Ski Dawg wrote:

>On Tue, 2006-06-13 at 13:16 -0500, Mike Brandonisio wrote:
>  
>
>>Also you have to use empty() on each var.
>>
>>if (empty($_POST['phhome']) && empty($_POST['phcell']) && empty($_POST 
>>['phwork']) &&
>>empty($_POST['email'])) {
>>    
>>
>
>This may be obvious, but it has caught me before. This will only return
>true in your if statement if EVERY variable is empty. If only one of the
>variables is filled in, then it will be false and jump to your else
>statement.
>
>I guess that is what I trying to code when I am half asleep. :-()
>--
>Doug
>
>Registered Linux User #285548 (http://counter.li.org)
>----------------------------------------
>Random Thought:
>A day without sunshine is like a day without orange juice.
>
>
>
>
>Community email addresses:
>  Post message: [email protected]
>  Subscribe:    [EMAIL PROTECTED]
>  Unsubscribe:  [EMAIL PROTECTED]
>  List owner:   [EMAIL PROTECTED]
>
>Shortcut URL to this page:
>  http://groups.yahoo.com/group/php-list 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
>  
>


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to