|
Posted by Jonathan N. Little on 08/07/06 19:27
Sonnich wrote:
[You are improperly snipping who wrote what quote which can get quite
confusing, try to keep or replace quoted author notices which I have
restored to show you....]
>> Sonnich wrote:
>>>
>>> I found that it should work here too:
>>>
>>> if( !(isset($_POST[$part1[$i]]) && ($_POST[$part1[$i]] ==
>>> "")) )
>>> echo " checked";
>>> else
>>> echo "";
>>>
>>> Idea: checkbox is default checked, but only if set and set to nothing
>>> it is not set.
>>> Boolean algebra. Only if set, and set to nothing, then it is not set.
>>>
>>> But by some reason it does not work. I have done this a 147533 times,
>>> and here it does not work. Why?
>>>
> Jonathan wrote:
>>
>> I think a misplaced closing parentheses:
>>
>
> You were right. This is what I have now:
>
> if( !(isset($_POST[$part1[$i]])) && ($_POST[$part1[$i]] ==
> "") )
> echo " checked";
> else
> echo "";
>
> but is still does not work. It sets them first time as it should, but
> after that it inverts the selection.
> I dont get it.
>
> Any ideas anyone?
>
Not enough info to determine, need URL and your source code. What you
you me by 'sets them'? Sets what? And 'after the first time'? Are your
reposting to the same script?
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|