RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms
| From: | Alice Wei | Date: | Sun, 30 May 2010 23:23:54 +0000 |
| Subject: | RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-305660@lists.php.net to get a copy of this message | ||
> Date: Sun, 30 May 2010 11:53:44 -0400
> To: php-general@lists.php.net; ajwei@alumni.iu.edu
> From: tedd.sperling@gmail.com
> Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms
>
> 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
>
> --
Tedd,
Looks like I finally found the answer to my question, and the key is the term, dependent drop down
menu. There is an example that I found here, http://www.huanix.com/files/dependent_select/dependent_select.txt,
and after editing everything, looks like what I want is not so far to reach.. As I am writing now, I
got the code I desired to work after studying what went on in the code from the above link.
Thanks for your help, and looks like I solved the problem, I may be able to close the thread now.
Alice
> -------
> http://sperling.com
> http://ancientstones.com http://earthstones.com8«H
> ÿ
—료M„D¼È
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2