Code: Select all
<form method='POST' name='manufacturerselect' action='/manufacturer'>
<select name='manufacturer' onChange=\"document.forms['manufacturerselect'].submit()\" style='background-color: #000000; color: #ffffff; border: 0px'>
<option value=''>Choose Manufacturer</option>
<option value='1'>One</option>
<option value='2'>Two</option>
</select>
</form>I want to be able to pass the data through, so the URL becomes http://www.domain.com/manufacturer/1
I don't know how to do this. I can do it with a hyperlink, but I really need this as a dropdown menu.
Perhaps it's with a GET method, but even then I don't know how to do it, specially with the shorturl code. If given some guidance I can possibly work the rest out.
UPDATE:
I've tried this in HTACCESS
RewriteRule ^manufacturers/([^/]+) /index.php?page=manufacturers&menu=home&manufacturer=$1 [L]
With the form code above, but it doesn't generate the URL like this. Or if it does, it does it like this:
http://domain.local/manufacturers/?manufacturer=CYMA
(using it locally for now)