|
Posted by Jerry Stuckle on 11/13/06 21:46
Amer Neely wrote:
> Jerry Stuckle wrote:
>
>>
>> Then you need to check your javascript code. It doesn't make any
>> difference to PHP whether the checkbox is checked by the user or JS -
>> in fact, there is no way for PHP to tell.
>>
>> If the box is checked, the client sends it to the server when the form
>> is submitted. If the box is not checked, the client does not submit
>> it to the server. There is no "checked by user" or "checked by
>> javascript" flag. It's either checked or not checked.
>>
>> And the fact it isn't going to the browser indicates it's not checked,
>> or you've done something else with your javascript.
>>
>
> See my reply to Deniel Keplar earlier. My JS code is in there, and how I
> use it. If you can implement it in some test code and see what PHP does
> with it that would help I think.
>
> I think I need to just play with some code and check whether a checkbox
> 'isset' or not, or whether it's 'on' or not.
>
Amer,
If you change the name to DeleteThis[], you've also got to change the
JavaScript code to reflect the name.
And Michael also pointed out the other error in your code. Use his code
- it works fine.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|