For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > April 2004 > PHP selection list









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP selection list
MAR

2004-04-21, 8:35 am

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


MAR

2004-04-21, 9:31 am

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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com