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:

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

php redirecting
i wont open a new thread but i have a question about redirecting....
i wonder why my code doesnt

Help building / using array
First - this is a cross-posting, if this is wrong I apologise! What started out as a MySQL query que

Better Method of a Member Cloud
I assume most people know how tag clouds work, where the tags most used are bigger and the least use

wav to mp3 + goDaddy
I need to convert wav files to mp3s. From what I have found so far one way to do it is to have my PH

Got A Free Server :(
So I was given a free server

http://shopping.yahoo.com/p:Compaq%20ProLiant%201500%20Server:1

need help with date function
i have following form for date

Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01

Disabling SAP menu
How do I disable SAP menu for all the users and just restrict them to User Menu in SAP ECC 6.0?

smart reading from a text file
Hello there fellow coders, i was wondering if one of you wouldnt mind helping me with this problem i

Checking if a process is running (problems including psapi.dll i think...)
Ok, so all I'm trying to do is check if a program is running...

I've found out that I nee

unserialize help, getting errors
hi all ,
I got a form with 6 fields (2 input and 4 select box), when the page loads one block 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