Re: [PHP] Re: checkboxes

2009-04-22 Thread Ashley Sheridan
On Wed, 2009-04-22 at 14:55 -0400, PJ wrote: > Ashley Sheridan wrote: > > On Wed, 2009-04-22 at 01:38 -0400, PJ wrote: > > > >> Ashley Sheridan wrote: > >> > >>> On Wed, 2009-04-22 at 07:17 +0530, kranthi wrote: > >>> > yeh an onclick event handler is required to achieve this. b

Re: [PHP] Re: checkboxes

2009-04-22 Thread PJ
Ashley Sheridan wrote: > On Wed, 2009-04-22 at 01:38 -0400, PJ wrote: > >> Ashley Sheridan wrote: >> >>> On Wed, 2009-04-22 at 07:17 +0530, kranthi wrote: >>> yeh an onclick event handler is required to achieve this. but as Shawn has suggested radio buttons are better in th

Re: [PHP] Re: checkboxes

2009-04-22 Thread kranthi
i find var_dump, trigger_error really useful in situations like these. just do var_dump($_POST); var_dump($_GET); in the action{.php} script and u'll find a good deal of useful information -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: checkboxes

2009-04-21 Thread Ashley Sheridan
On Wed, 2009-04-22 at 01:38 -0400, PJ wrote: > Ashley Sheridan wrote: > > On Wed, 2009-04-22 at 07:17 +0530, kranthi wrote: > >> yeh an onclick event handler is required to achieve this. but as Shawn > >> has suggested radio buttons are better in this case. > >> > >> but then again if u want to dis

Re: [PHP] Re: checkboxes

2009-04-21 Thread PJ
PJ wrote: > Ashley Sheridan wrote: > >> On Wed, 2009-04-22 at 07:17 +0530, kranthi wrote: >> >>> yeh an onclick event handler is required to achieve this. but as Shawn >>> has suggested radio buttons are better in this case. >>> >>> but then again if u want to disable/greyout the other inpu

Re: [PHP] Re: checkboxes

2009-04-21 Thread PJ
Ashley Sheridan wrote: > On Wed, 2009-04-22 at 07:17 +0530, kranthi wrote: >> yeh an onclick event handler is required to achieve this. but as Shawn >> has suggested radio buttons are better in this case. >> >> but then again if u want to disable/greyout the other input(like >> textboxes, other tha

Re: [PHP] Re: checkboxes

2009-04-21 Thread Ashley Sheridan
On Wed, 2009-04-22 at 07:17 +0530, kranthi wrote: > yeh an onclick event handler is required to achieve this. but as Shawn > has suggested radio buttons are better in this case. > > but then again if u want to disable/greyout the other input(like > textboxes, other than the radio button itself) u'

Re: [PHP] Re: checkboxes

2009-04-21 Thread kranthi
yeh an onclick event handler is required to achieve this. but as Shawn has suggested radio buttons are better in this case. but then again if u want to disable/greyout the other input(like textboxes, other than the radio button itself) u'll hav to use onclick event handler for the radio buttons -

Re: [PHP] Re: checkboxes

2001-10-27 Thread Arvydas V.
I have another idea - to use javascript to change hidden value () When you check this box - javascript changes hidden value to 1 and submits form ( function chkboxAndSubmit() { var box_name = document.GetElementById('box_name'); var chkbox = document.GetElementById('chkbox'); if (box_name

Re: [PHP] Re: checkboxes

2001-10-26 Thread R'twick Niceorgaw
use onClick event handler for the checkbox and inside the handler check if checkbox.checked==true then call your checked handler else call unchecked handler HTH - Original Message - From: "Ben Holt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 26, 2001 6:13 PM Subject