Reply to Re: Testing if two fields have data in them

Your name:

Reply:


Posted by Rik on 11/19/84 11:45

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация