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 Ian Davies on 11/19/91 11:45

Thanks Dave
But I tried that and that isnt it either
It also allows the 'else' part of the code to proceed

Ian

"David Haynes" <david.haynes2@sympatico.ca> wrote in message
news:Fzz1g.98964$bk2.19359@fe72.usenetserver.com...
> Ian Davies wrote:
> > Im trying to test if two fields have been entered at the same time
> > I have tried many combinations but cant get it. My last effort was
> >
> >
> > if(isset($_POST['Link'] && isset($_POST['uploadedfile'])){
> > die('You can\'t select to upload a link and a file at the same time.');
> > }
> > else
> > {
> > STUFF HERE;
> > }
> >
> > but still cant get it to work
> >
> > Help appreciated
> >
> > Ian
> >
> >
>
> Watch the scope of the isset. I think you wanted:
> if( isset($_POST['Link']) && isset($_POST['uploadedfile']) ) {
>
> -david-
>

 

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

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