Get value from Select menu


Posted on 16th Feb 2014 07:03 pm by admin

Hi!

Have tried to find the solution on the web. Don't know if there is an easy one. A description:

Did you know?Explore Trending and Topic pages for more stories like this.
Line number On/Off | Expand/Contract<form method="post" name="me" action="http://chart.apis.google.com/chart?cht=lc&chd=t:30,35,36&chxt=x,y,r&chl=:<? echo $month_arr[0]; ?>|<? echo $month_arr[1]; ?>|<? echo $month_arr[2]; ?>"> <select name="month_sel" id="month" style="width: 50px;"> <option value="3">3 months</option> <option value="6">6 months</option> <option value="3" SELECTED>3 months</option> </select><?php $first_month = $month-$s; $month_arr[0] = $first_month;..?><input type="submit" value="submit" name="submit"></form>
The thing is that I want to pass the value from the selected option in the menu into $s. Then pass the array to the Form action tag. Is this possible maybe with a return function?
I know how to get the value with javascript and OnChange but don't know how to use it.
No comments posted yet

Your Answer:

Login to answer
312 Like 26 Dislike
Previous forums Next forums
Other forums

Scrolling news bar and MySQL
I am not sure if this is the correct forum to post this on. If not, I apologize. I am still pretty

UDP Multicast question
Hey,

Im not really in the know when it comes to network related programming and activitie

Form a inline view based on the results of the previous query?
Hi Experts,
Can we form a inline view on the results of a previous query (another inline view)?

Undefined variable when using $_SERVER['PHP_SELF']
Hi guyz, please suggest me something...
On first.php I have one input field NAME, and on posting

do while...woes
I'm sure this is childsplay but it is stumping me, everytime i try what I think would make this work

Slow data retrieval which requires improvement..please help
I am working on a Help Desk Ticketing system and have a page called MY TICKETS which shows all ticke

regex for quoted text within a string
I am still getting the hang of regex expressions, but I cant seem to figure out how I would escape q

Open/Close Links in Php
Hello, Hoping someone can inform me how I can get PHP to automatically open a set of links in a new

str_replace help
Hey there,

I'm a PHP newb, I'm having troubles with the str_replace function. I want to clean

Significance of BPM
Hi Experts,
I am a novice in BPM , I just want to know how BPM as permenant department is

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash