Hi all !
I wish to post the value of an auto submit dropdown value to another page, be redirected to that page, and use it on that page. I am unable to achieve this in php and so I tried as :-follows:-
dropdown.php
<form method="post" action = dropdownaction.php>
<select name="myselect" onchange="this.form.submit();">
<option>blue</option>
<option>red</option>
</select>
</form>
and now I need the equivalent of
dropdownaction.php
<?php
if(isset($_POST(['myselect']))) echo " I am selected".$_POST['myselect'];
?>
Please can someone tell me how I may retrieve the value of 'myselect' in the dropdownaction.php after being redirected to it.
Thanks loads.