Re: checkboxes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



PJ wrote:
How to deactivate checkboxes when one in a series is checked?
<input type="checkbox" name="choice[1]"><another input>
<input type="checkbox" name="choice[2]"><another input1>
<input type="checkbox" name="choice[3]"><another input2>
<input type="checkbox" name="choice[4]"><another input3>
So that only 1 of the other inputs could be used in a search. Probably
do the rest with switch stuff.
Would be neat if the deactivated checkboxes would go grey.
Is this an HTML question? Use onclick?But I think I need to either use a
php string or function or would this be a CSS thingy?
Thanks for any help.


I think you need to explain more precisely what you are doing.

However, an appropriate use of client-side processing vs.
server-side process is always a factor in a good web app.

You *could* disable stuff via choices that are made with
PHP, but it requires a submission of data. Javascript would
allow you to disable certain things without a submission.

First, I'd like to hear more clearly what end result you
are going for.

Donovan


--
  =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o
  D. BROOKE                       EUCA Design Center
                               WebDNA Software Corp.
  WEB:> http://www.euca.us  |   http://www.webdna.us
  =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o
  WebDNA: [** Square Bracket Utopia **]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux