Re: [PHP] Validating Radio Buttons in two directions

2006-02-02 Thread Barry
HiFi Tubes wrote: Here's the solution I came up with for checking the columns to varify only one in a column is selected (without using JavaScript) in a matrix of radio buttons consisting of 4 columns and 4 rows. Doing this was complicated by the fact that some rows did not have to be answered.

Re: [PHP] Validating Radio Buttons in two directions

2006-02-02 Thread Barry
Barry wrote: Now time to go back into an array: $colorarray = explode ( , $colorstring); Next I count how many times particular values show up in an array: $colorvalues = array_count_values ($colorarray); *Note: This gives me an array with how many times each value shows up. So if the user

Re: [PHP] Validating Radio Buttons in two directions

2006-02-02 Thread tedd
I am rather amused by the fact that the experts were too busy telling me what to do (even when I said JavaScript was not to be used)instead of actually helping me learn and come up with a solution. But, then, I suppose this problem was too simple for them. I was tempted to not post my

Re: [PHP] Validating Radio Buttons in two directions

2006-02-01 Thread HiFi Tubes
Here's the solution I came up with for checking the columns to varify only one in a column is selected (without using JavaScript) in a matrix of radio buttons consisting of 4 columns and 4 rows. Doing this was complicated by the fact that some rows did not have to be answered. The radio buttons

Re: [PHP] Validating Radio Buttons in two directions

2006-01-19 Thread Richard Lynch
On Mon, January 16, 2006 9:16 pm, HiFi Tubes wrote: I'm kind of a newbie so speak sowly. I've got a problem with validating radio buttons that seems to be harder than I think to solve. I've got ten items set up like this: Green: input type=Radio name=color1 value=1 / input

Re: [PHP] Validating Radio Buttons in two directions

2006-01-19 Thread Richard Lynch
On Tue, January 17, 2006 9:45 am, John Nichel wrote: Huh? Maybe I'm just not awake this morning and not understanding what you're trying to explain, but if you're using *radio* buttons, only *one* of the same name can be checked at any give time. ie: input type=radio name=color value=1 /

Re: [PHP] Validating Radio Buttons in two directions

2006-01-19 Thread HiFi Tubes
On 1/19/06, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, January 16, 2006 9:16 pm, HiFi Tubes wrote: I'm kind of a newbie so speak sowly. I've got a problem with validating radio buttons that seems to be harder than I think to solve. I've got ten items set up like this:

Re[2]: [PHP] Validating Radio Buttons in two directions

2006-01-18 Thread Steve Clay
Tuesday, January 17, 2006, 11:33:18 PM, HiFi Tubes wrote: Thanks to all of you who responded. Yes, I am doing the grid --basically 100 radio buttons, that is ten comments that must be ranked from 1 to 10. Ugh. If you absolutely can't use Javascript, here's an idea: Present this question by

Re: [PHP] Validating Radio Buttons in two directions

2006-01-18 Thread tedd
HiFi: Thanks so much Tedd for the JavaScript. I will keep that snippet for use and study to improve my JS skills. Unfortunately I should have said that I need to stay away from JS in case the users have shut that down in their browsers. I know I can detect that and have them turn it on but

Re: [PHP] Validating Radio Buttons in two directions

2006-01-17 Thread tedd
How do I assure that only one color is ranked at any one value? I hope my question makes sense. Any help will be appreciated. Thanks in advance. HiFi Tubes HiFi: I understand your problem, you don't want the user to pick a color such that it ranks the same as another color (i.e., only one

Re: [PHP] Validating Radio Buttons in two directions

2006-01-17 Thread John Nichel
tedd wrote: How do I assure that only one color is ranked at any one value? I hope my question makes sense. Any help will be appreciated. Thanks in advance. HiFi Tubes HiFi: I understand your problem, you don't want the user to pick a color such that it ranks the same as another color

Re: [PHP] Validating Radio Buttons in two directions

2006-01-17 Thread Austin Denyer
On Tue, 17 Jan 2006 10:45:01 -0500 John Nichel [EMAIL PROTECTED] wrote: Huh? Maybe I'm just not awake this morning and not understanding what you're trying to explain, but if you're using *radio* buttons, only *one* of the same name can be checked at any give time. ie: input type=radio

Re: [PHP] Validating Radio Buttons in two directions

2006-01-17 Thread John Nichel
Austin Denyer wrote: On Tue, 17 Jan 2006 10:45:01 -0500 John Nichel [EMAIL PROTECTED] wrote: Huh? Maybe I'm just not awake this morning and not understanding what you're trying to explain, but if you're using *radio* buttons, only *one* of the same name can be checked at any give time. ie:

Re: [PHP] Validating Radio Buttons in two directions

2006-01-17 Thread tedd
On Tue, 17 Jan 2006 10:45:01 -0500 John Nichel [EMAIL PROTECTED] wrote: Huh? Maybe I'm just not awake this morning and not understanding what you're trying to explain, but if you're using *radio* buttons, only *one* of the same name can be checked at any give time. ie: input type=radio

Re: [PHP] Validating Radio Buttons in two directions

2006-01-17 Thread HiFi Tubes
Thanks to all of you who responded. Yes, I am doing the grid --basically 100 radio buttons, that is ten comments that must be ranked from 1 to 10. Thanks so much Tedd for the JavaScript. I will keep that snippet for use and study to improve my JS skills. Unfortunately I should have said that

Re: [PHP] Validating Radio Buttons in two directions

2006-01-17 Thread HiFi Tubes
Oops I should have said Austin not John below. Austin, could you or someone point my in the direction of how to do this in PHP? Thanks so much. HiFi Tubes On 1/17/06, HiFi Tubes [EMAIL PROTECTED] wrote: Thanks to all of you who responded. Yes, I am doing the grid --basically 100 radio

[PHP] Validating Radio Buttons in two directions

2006-01-16 Thread HiFi Tubes
I'm kind of a newbie so speak sowly. I've got a problem with validating radio buttons that seems to be harder than I think to solve. I've got ten items set up like this: Green: input type=Radio name=color1 value=1 / input type=Radio name=color1 value=2 / input type=Radio name=color1