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.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/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