You are here: Re: Grabbing checkbox values « PHP Programming Language « IT news, forums, messages
Re: Grabbing checkbox values

Posted by Amer Neely on 11/13/06 22:54

Jerry Stuckle wrote:
> 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.
>
>

I've made a few changes in both the JS and PHP, and have solved the
problem (see my latest post under this subject heading) :: SOLVED.

Again thanks for the input and insight.

--
Amer Neely
w: www.softouch.on.ca/
b: www.softouch.on.ca/blog/
Perl | MySQL programming for all data entry forms.
"We make web sites work!"

 

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

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