The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Getting the selected value on a dropdown menu
This is for vb2.3.x in case it matters.
I pass a URL to an edit action , but can't get the selected value to show up. It just defaults to the first option in the list. Example of an URL I pass is: example.php?action=edit&id=1&select=3 The piece of the code in the template is: Code:
<p><b>Dropdown box</b><br> <SELECT NAME="select" SIZE="1"> <option value="0">Choose type:</option> <option value="1">option 1</option> <option value="2">option 2</option> <option value="3">option 3</option> <option value="4">option 4</option> </SELECT></p> PHP Code:
Code:
<p><b>Dropdown box</b><br> <SELECT NAME="select" SIZE="1"> <option value="0">Choose type:</option> <option value="1">option 1</option> <option value="2">option 2</option> <option value="3" $sel3>option 3</option> <option value="4">option 4</option> </SELECT></p> Is there something in place that I can use, or can anyone help me out or point me in the right direction? Thanks in advance nevermind, i got it now. The correct php was: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|