You are here: Re: Testing if two fields have data in them « PHP Programming Language « IT news, forums, messages
Re: Testing if two fields have data in them

Posted by Geoff Berrow on 10/08/79 11:45

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.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

Navigation:

[Reply to this 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

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