PHP selection list

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-21-2004
MAR
 
Posts: n/a
Default 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


Reply With Quote
  #2 (permalink)  
Old 04-21-2004
Dennis Biletsky
 
Posts: n/a
Default Re: PHP selection list


"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 .... :)


Reply With Quote
  #3 (permalink)  
Old 04-21-2004
Dennis Biletsky
 
Posts: n/a
Default Re: PHP selection list


"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


Reply With Quote
  #4 (permalink)  
Old 04-21-2004
MAR
 
Posts: n/a
Default Re: PHP selection list

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


Reply With Quote
  #5 (permalink)  
Old 04-21-2004
Dennis Biletsky
 
Posts: n/a
Default Re: PHP selection list


"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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0