CBaZ Posted January 25, 2013 Share Posted January 25, 2013 I am getting the value but with too much info for the URL string. <form method="get" action="<?php echo $SERVER_['PHP_SELF'] ?>"> <select name="brand"> <option value="Acer">Acer</option> </select> <select name="device"> <option value="Audio">Audio</a></option> </select> <input type="image" src="images/submit.jpg" width="95" height="89" onclick="<?php $_POST['brand']; $_POST['device']; ?>" /></div><br> </form> This will output this URL index.php?brand=Acer&device=Audio&x=35&y=31 I need it to be in this format index.php?Acer&Audio .. if possible if not I would need to rewrite my other script. Quote Link to comment https://forums.phpfreaks.com/topic/273648-get-value-from-select-box-with-php/ Share on other sites More sharing options...
trq Posted January 25, 2013 Share Posted January 25, 2013 Start rewriting. Not that it's not possible, just that it makes more sense to do so. Quote Link to comment https://forums.phpfreaks.com/topic/273648-get-value-from-select-box-with-php/#findComment-1408274 Share on other sites More sharing options...
CBaZ Posted January 25, 2013 Author Share Posted January 25, 2013 ok Quote Link to comment https://forums.phpfreaks.com/topic/273648-get-value-from-select-box-with-php/#findComment-1408277 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.