This is a discussion on PHP selection list within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Can anyone tell how to get the selection value stored in the variable and use that selection to produce another ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Can anyone tell how to get the selection value stored in the variable
and use that selection to produce another selection list .... hope you understand me .... ---------------------------------------- The post originated from PHP Freaks: ---------------------------------------- http://www.phpfreaks.com http://www.phpfreaks.com/forums |
|
|||
|
"MAR" <hamdan54@emirates.net-dot-ae.no-spam.invalid> ???????/???????? ? ???????? ?????????: news:B8SdnXn7vKEMyBvdRVn_vA@giganews.com... > Can anyone tell how to get the selection value stored in the variable > and use that selection to produce another selection list .... hope > you understand me .... > > > > > ---------------------------------------- > The post originated from PHP Freaks: > ---------------------------------------- > http://www.phpfreaks.com > http://www.phpfreaks.com/forums > > <form method=post action=file.php> <select name=collect2> <option value="one">one</option> <option value="two">two</option> <option value="three">three</option> <option value="next">next</option> </select> <input type="submit" name="Submit" value="post"> in php file your have to check $_POST["collect2"] value and then build another <select> in accordance with selected item in previous one hope you understand me .... :) |
|
|||
|
"Dennis Biletsky" <ufafa@ua.fm> сообщил/сообщила в новостях следующее: news:c65n16$tug$1@fortress.intercom.net.ua... > > "MAR" <hamdan54@emirates.net-dot-ae.no-spam.invalid> ???????/???????? ? > ???????? ?????????: news:B8SdnXn7vKEMyBvdRVn_vA@giganews.com... > > Can anyone tell how to get the selection value stored in the variable > > and use that selection to produce another selection list .... hope > > you understand me .... > > > > > > > > > > ---------------------------------------- > > The post originated from PHP Freaks: > > ---------------------------------------- > > http://www.phpfreaks.com > > http://www.phpfreaks.com/forums > > > > > <form method=post action=file.php> > <select name=collect2> > <option value="one">one</option> > <option value="two">two</option> > <option value="three">three</option> > <option value="next">next</option> > </select> > <input type="submit" name="Submit" value="post"> > > in php file your have to check $_POST["collect2"] value and then build > another <select> in accordance with selected item in previous one > > hope you understand me .... :) > > by the way. Also you can build all your secondary <select>s in <div></div> blocks with style="visibility:hidden" and in first <select> handle onChange event and make visibility:visible for corresponding <div></div> block with appropriate<select, but it's JS that can be switched off |
|
|||
|
How can I make it hidden ... and the user should press the button
after selecting the first selection .... ;) help me more plz ---------------------------------------- The post originated from PHP Freaks: ---------------------------------------- http://www.phpfreaks.com http://www.phpfreaks.com/forums |
|
|||
|
"MAR" <hamdan54@emirates.net-dot-ae.no-spam.invalid> ???????/???????? ? ???????? ?????????: news:p-mdnQtJGtXO9RvdRVn_vQ@giganews.com... > How can I make it hidden ... and the user should press the button > after selecting the first selection .... ;) help me more plz > > > > ---------------------------------------- > The post originated from PHP Freaks: > ---------------------------------------- > http://www.phpfreaks.com > http://www.phpfreaks.com/forums > > If you are not familiar with JS so use PHP only as I described in first version |