![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
how to pass the value of selected drop-down menu in variable to another page?hi,
there is a php-myql script that list the mysql databases in the drop-down menu, i want the selected database from the drope down menu should pass in the $db_name to the test php, the script list the databases in the drop-down menu ok, now this is the test.php: PHP Code:
the $db_name should be the selected database, but the output of test.php is: hello Db_list this is the listDb.php: PHP Code:
__________________
http://www.shams.at.tt Last edited by LuciWiz : 19-Oct-2006 at 15:08.
Reason: Please insert your Php code between [php] & [/php] tags
|
|
#2
|
||||
|
||||
Re: how to pass the value of selected drop-down menu in variable to another page?Because you named the SELECT element as Db_list, the script (test.php) should be re-written so:
PHP Code:
You already have a hidden input element named db_name before the select. |
|
#3
|
|||
|
|||
Re: how to pass the value of selected drop-down menu in variable to another page?thanks admin, that works great now.
__________________
http://www.shams.at.tt |
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shapes Functions Version 2 - Arrays! | Cecil | C Programming Language | 1 | 09-Jul-2006 20:39 |
| Pass by references? | Cecil | C Programming Language | 4 | 29-Jun-2006 02:30 |
| Need Help Modifiying the script of a menu | demtro | Web Design Forum | 1 | 23-Sep-2005 19:30 |
| How do I install a drop down menu? | rhino1616 | Web Design Forum | 1 | 30-Aug-2005 05:22 |
| Can someone suggestion a nice drop down menu? | rhino1616 | Web Design Forum | 4 | 22-Aug-2005 10:16 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The