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 soluti

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 use

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-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 th

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 l

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: > > Blue > Red > Black > Green > Ma

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: type="Radio" > name="color1" value="2" /> /

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 I

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

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 I

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: Blue Red Bla

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 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: > > Blue > R

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 (i

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