|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Submittin form to a variable from drop down list
I'm sure this is easy to do but I can't think of a method, so any help would be much appreciated.
In a form, I have a drop down list populated from a database. When the user selects an item and clicks "submit" I want the action of the form to be the selected item. For example, imagine the list contains: Horse Mouse Cat Dog The user selects "Cat" and clicks the "submit" button. I want the action to go to "cat.php" Thanks in advance. |
|
#2
|
|||||
|
|||||
|
RE: Submittin form to a variable from drop down list
Why not use a "jump off" page?
send the form to to post.php php Code:
|
|
#3
|
|||
|
|||
|
RE: Submittin form to a variable from drop down list
Thanks for you reply.
Thinking through the problem, your solution of using a jump page is what I eventually did. However, I used Javascript as there is an abundance of this type of script of the Internet and I'm no Javascript programmer. Also, this is for our intranet so I know that Javascript won't be disabled on the browser. Thanks again for your time to reply, it is appreciated. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Submittin form to a variable from drop down list |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|