At 12:08 PM -0400 5/29/10, Alice Wei wrote:
At the time of writing this, I got all the functionality I wanted,
only that it takes 3 submits, which is 4 pages in total, which
includes two dependent select menus based on user input by clicking
on the radio button and some other static drop downs and text inputs.
I am not sure if it is possible to cut it down two only two submits,
I just went online and found this,
http://www.w3schools.com/dhtml/tryit.asp?filename=trydhtml_event_onchange.
If I could change this function to using the radio button, and
process the other searching for the dependent drop downs using case
statements with PHP , do you think this is a good idea?
Anyway, I found this method is kind of ugly for the time being, but
less daunting with what I was doing before. Thanks.
Alice
Alice:
The example you provided above is very basic and I think what you
want is far more complex.
I realize that it's hard to convey what it is that you actually want
because you don't know all that can be done -- and the number of
possibilities of how to organize controls is far too vast for me to
guess.
For example, here's another example of what can be done:
http://www.webbytedd.com/a/ajax-select/index.php
But I know this doesn't fully solve your problem but it comes closer
than the example you provided above.
Sometimes it's best to "story-board" what you want so that both you
and to whom you're asking questions can have a better idea of the
problem.
For example, let's say you want to gather data from a user -- in
option A, the user is asked Y/N. If the user answers N, then the user
is sent to option B. If the user answers Y, then the user is sent to
option C. In option B the user is presented with... and Option C the
user is presented with... and so on. -- I'm sure you get the idea.
So, if you want to continue with this, please prepare a "story-board"
and present your problem again.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php