| Author |
PHP selection list
|
|
|
| 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
| |
| Dennis Biletsky 2004-04-21, 8:35 am |
|
"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 2004-04-21, 8:35 am |
|
"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...
> <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
| |
| Dennis Biletsky 2004-04-21, 10:38 am |
|
"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
|
|
|
|