Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-03-2009, 10:37 PM   #1 (permalink)
learnhardy
 
Join Date: Oct 2008
Posts: 104
Cool changing form and input to go to .htaccess redirected url!


This is my form
PHP Code:
<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.
__________________
Newbie......
celebrate an ancient art .....
http://ambika.99k.org
ambika is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 07-03-2009, 11:07 PM   #2 (permalink)
हॉर्न ओके प्लीज़
 
victor_rambo's Avatar
 
Join Date: Sep 2007
Posts: 1,493
Default Re: changing form and input to go to .htaccess redirected url!

Use redirection
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति

गीक होना माँगता
victor_rambo is offline  
Old 07-03-2009, 11:35 PM   #3 (permalink)
learnhardy
 
Join Date: Oct 2008
Posts: 104
Exclamation Re: changing form and input to go to .htaccess redirected url!

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!
__________________
Newbie......
celebrate an ancient art .....
http://ambika.99k.org
ambika is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: Samsung LCD does not detect PC input noxious Hardware Q&A 14 16-07-2010 01:40 PM
Which Input devices r u using? gxsaurav QnA (read only) 15 08-09-2008 03:00 AM
No audio input! Chetan1991 Software Q&A 2 04-02-2007 02:35 PM
17 " lcd with DVI input Ringwraith TVs / Monitors 18 29-09-2005 02:42 PM

 
Latest Threads
- by Sujeet
- by gforz
- by soumya
- by icebags

Advertisement




All times are GMT +5.5. The time now is 03:09 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2