DIGIT-ARC read-only archive · snapshot: July 23, 2026

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

3 posts · originally from https://geek.digit.in/community/threads/changing-form-and-input-to-go-to-htaccess-redirected-url.110286/

A
ambika Original post #1
Mar 7, 2009 at 10:37 PM
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.
A
ambika #3
Mar 7, 2009 at 11:35 PM
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!