RE: [PHP] empty variables from a form

2003-02-07 Thread Ford, Mike [LSS]
> - Original Message - > From: "Erich Beyrent" <[EMAIL PROTECTED]> > To: "Sunfire" <[EMAIL PROTECTED]> > > > > > hi.. > > > > > > how would you test for an empty (unused) variable from a form.. > > > i have a phone number split into 3 different vairiables > and want to test > > to > > >

Re: Re: [PHP] empty variables from a form

2003-02-05 Thread 1LT John W. Holmes
> empty doesnt work either... it still comes up as though something is in them > and excludes either nothing at all or includes everything...even the empty > vars..any reason for that ? Because you're jacking something up in your logic or code... show us how your trying to solve this perplexing di

Re: Re: [PHP] empty variables from a form

2003-02-05 Thread Kevin Stone
Okay enough of this. Please show us some code. :-) -Kevin - Original Message - From: "Sunfire" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003 2:10 PM Subject: Re: Re: [PHP] empty variables from a form > empty doesnt work eithe

Re: Re: [PHP] empty variables from a form

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 05:10, Sunfire wrote: > empty doesnt work either... it still comes up as though something is in > them and excludes either nothing at all or includes everything...even the > empty vars..any reason for that ? Do var_dump() all the vars which you think are empty but PHP

Re: Re: [PHP] empty variables from a form

2003-02-05 Thread Sunfire
re" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003 2:43 PM Subject: Spam: Re: [PHP] empty variables from a form > > > > > how would you test for an empty (unused) variable from a form.. > > > > i have a phone number split into 3 dif

Re: [PHP] empty variables from a form

2003-02-05 Thread 1LT John W. Holmes
> > > how would you test for an empty (unused) variable from a form.. > > > i have a phone number split into 3 different vairiables and want to test > > to > > > see if they were used in the form before displaying either the phone > > number > > > itself or just leaving it out of the display... wh

Re: [PHP] empty variables from a form

2003-02-05 Thread Sunfire
Wednesday, February 05, 2003 2:40 PM Subject: Re: [PHP] empty variables from a form > tnx will try that my other code looked something like that but it didnt > work.. probably had the (and ) in the wrong places... i set it up as the > whole statement as 1 if statement not 3 different one

Re: [PHP] empty variables from a form

2003-02-05 Thread Kevin Stone
string against the litteral expression. if($myvar == ''); ..or.. if(empty($myvar)); -Kevin - Original Message - From: "Sunfire" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003 12:40 PM Subject: Re: [PHP] empty variables from a for

Re: [PHP] empty variables from a form

2003-02-05 Thread Sunfire
quot;Sunfire" <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003 1:54 PM Subject: Re: [PHP] empty variables from a form > > hi.. > > > > how would you test for an empty (unused) variable from a form.. > > i have a phone number split into 3 different vairiable

Re: [PHP] empty variables from a form

2003-02-05 Thread Kevin Stone
Next time please consider searching on PHP.net or Google before you post. This is an exceedingly basic question and there is an extraordinary amount of information already out there.. if(empty($_POST['ac2'])) { echo "Area Code is a required field."; } -Kevin - Original Message - From

Re: [PHP] empty variables from a form

2003-02-05 Thread 1LT John W. Holmes
> how would you test for an empty (unused) variable from a form.. > i have a phone number split into 3 different vairiables and want to test to > see if they were used in the form before displaying either the phone number > itself or just leaving it out of the display... what code would be good to