|
Posted by tedd on 10/04/52 11:37
>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 gets a
number-one ranking, only one gets a number-two ranking and so on).
In php you can detect what the user picked AFTER they submit the form
(click submit) and then redirect them back with an explanation "Hey,
you made a mistake -- this is what you are supposed to do." And then,
hope they do it right next time. However, that's against normal (or
at least my) GUI.
IMO, what you need to do is client-side checking, namely javascript.
You need to have a routine that checks what the user selects as the
user selects it -- this can't be done in php -- it can only be done
server-side.
I give you a hint, you should investigate:
<input TYPE="radio" NAME="button" onClick="<whatever>"></td>
The routine should simply un-check a previously checked button.
HTH's
tedd
--
--------------------------------------------------------------------------------
http://sperling.com/
Navigation:
[Reply to this message]
|