Posted by Jerry Stuckle on 11/06/77 11:45
Ian Davies wrote:
> Thanks Gordon
> Unfortunately your solution does not work. It allows the 'else' part of the
> code to proceed
>
> Ian
>
> "Gordon Burditt" <gordonb.lkgz9@burditt.org> wrote in message
> news:124df97s3t7rr2a@corp.supernews.com...
>
>>>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
>>
>>So what happens when you try? It gives you the error when it shouldn't,
>>or it doesn't give you the error when it should?
>>
>>A blank field is not the same as NO field. I'm going to guess
>>that you mean:
>>
>>if ((isset($_POST['Link']) && $_POST['Link'] != '')
>> && (isset($_POST['uploadedfile']) && $_POST['uploadedfile'] != '') {
>>
>>Gordon L. Burditt
>
>
>
But if the condition is false, the else clause SHOULD run. What's the problem?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|