changing form and input to go to .htaccess redirected url!

Status
Not open for further replies.

ambika

learnhardy
This is my form
PHP:
<form name="search" method="_post" action="index.php">
    <input class="searchbox" type="text" name="q" />
    <select name="type">
        <option value="all" >All</option>
        <option value="1" >Rapidshare</option>
        <option value="2" >Badongo</option>
        <option value="3" >Mediafire</option>
        <option value="4" >Sendspace</option>
        <option value="5" >4shared</option>
    </select>
    <input type="submit" name="search" value="Search" /><br /><br />
    <input type="radio" name="stype" value="all" checked /> all files
    <input type="radio" name="stype" value="checked" /> checked files
</form>
It would go to url like this /index.php?q=&1&type=&2&search=&3&stype=&4

i want it to goto url like this as rewriterule in .htaccess
"/results-&1-&2-&3-&4.htm "
.htaccess is working correctly and i just need to edit the form.
 
OP
A

ambika

learnhardy
i added [R] at the end of .htaccess rewriterule. but the effect is reversed.Instead of the friendly url it is always going to the long one.

help!
 
Status
Not open for further replies.
Top Bottom