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 -

[PHP] Re: checkboxes

2009-04-21 Thread Shawn McKenzie
PJ wrote: > How to deactivate checkboxes when one in a series is checked? > > > > > 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

[PHP] Re: checkboxes

2005-11-29 Thread Matt Monaco
Well if your keys are a straight sequence of numbers instead of a foreach you can do a for loop and for those whose value is not one, set to zero. Matt "blackwater dev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I have a form where I am dynamically building a bunch of checkbox

[PHP] Re: checkboxes

2002-11-22 Thread Bastian Vogt
hi, your missing some brackets "[]"! this should work better: AAA SSS regards, Bastian > Hello; > > I want to do that: > > I have two checkboxes: > if first one is checked assign the value as a; > if first one is checked assign the value as s; > if both of them checked assign

[PHP] Re: checkboxes

2002-06-22 Thread Austin Marshall
M.E. Suliman wrote: > Hi > > I know this might be a bit easy for all you experts out there. I have > multiple checkboxes and text areas in a form. In the confirmation email > sent to the user I manage to get the text areas to display in the email. > How would I get the results of the checkboxe

[PHP] RE: checkboxes vs text filed array and hidden variables

2002-01-15 Thread Tim Ward
Sounds to me like your problem is that only the checkboxes that are checked are passed back. e.g. for ($I = 1; $I <= 10; $I++) { echo(""); echo(""); echo(""); echo(""); } when the form is submitted 2 arrays are posted, textfield and cbox. Textfield has 10 elements bu

[PHP] Re: Checkboxes / Undefined Variables

2001-11-15 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > In am HTML form, checkboxes NOT checked are not passed > to the PHP script called by the form. > > Therefore, if $name_of_chechbox_3 is not passed but it's > used in the PHP script, it results in "Warning: > Undefined Variable". > In am HTML form, checkboxes NOT checke

[PHP] Re: Checkboxes / Undefined Variables

2001-11-13 Thread dav
define it :-)) boolean name_of_chechbox_3; for example J <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] .net... > In am HTML form, checkboxes NOT checked are not passed > to the PHP script called by the form. > > Therefore, if $name_of_chechbox_3 is not passed but it's > used

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
tober 26, 2001 6:13 PM Subject: [PHP] Re: checkboxes > Sounds like onChange to me... when you check it you change it, when you > uncheck it you change it. > > - Ben > > Boaz Yahav wrote: > > > does anyone know the HTML event that knows when a checkbox has been > > checke

[PHP] Re: checkboxes

2001-10-26 Thread Ben Holt
Sounds like onChange to me... when you check it you change it, when you uncheck it you change it. - Ben Boaz Yahav wrote: > does anyone know the HTML event that knows when a checkbox has been > checked and unchecked? > So far I'm using onChange but that is not exactly what I need. I need to >