View Single Post

  #11 (permalink)  
Old 04-20-2006
Rik
 
Posts: n/a
Default Re: Testing if two fields have data in them

Geoff Berrow wrote:
> Message-ID: <SQy1g.55760$Nh7.17628@newsfe4-win.ntli.net> from Ian
> Davies contained the following:
>
>> if(isset($_POST['Link'] && isset($_POST['uploadedfile'])){

>
> isset will return true for certain form elements even if they are
> empty.
>
> Assuming the elements are not checkboxes radio boxes or buttons, try
>
> if(!empty($_POST['Link']) && !empty($_POST['uploadedfile'])){
> ...
>
>
> If this doesn't work, let us know what elements you are dealing with.


A simple print_r($_POST) would clarify a lot....
Enough working examples in this thread.

If the current examples don't work, $_POST['uploadedfile'] makes me suspect
the $_FILES array should by checked....

Grtz,
--
Rik Wasmus


Reply With Quote