Posted by David Haynes on 09/26/47 11:45
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]
|