drop-down change display same page with lots of variables
busystock
2:50 am on Feb 23, 2010 (gmt 0)
i have a page with lots of drop-down variables(A). there is one different drop-down(B) a set of preset links with some of those A variables defined... How can I keep the selected B value and open the preset link?
thanks a lot.
PHP_Chimp
10:01 am on Feb 23, 2010 (gmt 0)
If you are wanting to keep the results from A and use those to influence B (without reloading the page) then you are looking at a client side script. Javascript will sort it out for you.
If you are wanting to keep the value of B when you load a new page then you could send it as a GET request. Something like example.com?b=myValue You can then use $_GET['b'] to access that value on the new page.
I'm not sure exactly what you are asking, but hopefully either one of those answers your question. Welcome to the forum.
busystock
2:25 pm on Feb 23, 2010 (gmt 0)
i want to keep the value of B, not As.
<option value='aaa'>link a</option>
aaa is way too long. is there any other way to do that?