if(empty($A))//for testing empty

if(!empty($A))//for testing not empty



--- In [email protected], "phplist_jsh" <[EMAIL PROTECTED]> wrote:
>
> Consider this statement related to Fields sent to PHP via an HTTP POST.
> 
>     $A = $_POST["FieldName"];
> 
> If the page did not have a form field with FiledName, the result is 
> that $A is empty.
> 
> If the page DID have a form field with FieldName, but the field was 
> left empty, then $A is empty also.
> 
> How should I test $_POST to distinguish between these two conditions.
> 
> 
> James S. Huggins
> 
> 
> ...
>


Reply via email to