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

str_replace help
Hey there,

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

what business processes?
Hi,

A general question. What business processes (like OTC - Order to Cach, P2P, R2R etc)

extract a file from zip file
hi,
i know how to unzip a zip file in php, but is there a way to just extract a certain file only

PHP page loading in Firefox but not in IE
hello,

i am currently doing a project in PHP and i have a problem. If I view the project in M

Problem in String replace program's output
Hi all,
I was trying to make a program which accepts a string and replaces it with another stri

Hits this week counter
I have a counter on my site that tracks hits, IP's, etc. into a mySQL database. It also includes the

HTML Form Server Side Validation
Hi, Im new here, im currently doing a website for a friend, and I have designed using snippets from

convert PHP array to Javascript array
I have a page that gets a request sent from AJAX, and I am trying to convert a PHP array to a javasc

Need understanding of this bit of code
Code: <?php
// WHERE clause filters
$arrSQLFilters = array();

//

Writing to the middle of a file
Hi I have a bit of a problem. Is there any way i can write some text to a middle of a text file. For

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