scm0sml
asked on
using url rewrites when posting a form
if i have the form:
<form action="searchResults.php" method="get">
<input type="text" name="search" class="search" size="20" maxlength="50" title="Where Are You Looking To Go?? - Enter The Town Or Caravan Park" />
<input type="hidden" name="mode" value="quick"/>
<input class="SubmitButton" type="submit" value="Search" class="submitbutton" name="submitbutton"/>
</form>
but i dont want the user or search engines to see the params, what is the best way to get a rewrite in??
im starting to get to grips with rewrites but this has got me slightly, do i need to post the data to one form which then forwards onto a url composed of the data and then catch that url which would be clean of any '?' or '&' etc.
so searchResults.php?search=t enby&mode= quick would be the url from the intial form, then in this form compose a url, mayb result-quick-tenby.htm
and then catch this address and post to the intial searchResults.php?........
but obviously the user or search engine wouldnt see this address, just the nice clean .htm url.
is this the best way to do this?
<form action="searchResults.php"
<input type="text" name="search" class="search" size="20" maxlength="50" title="Where Are You Looking To Go?? - Enter The Town Or Caravan Park" />
<input type="hidden" name="mode" value="quick"/>
<input class="SubmitButton" type="submit" value="Search" class="submitbutton" name="submitbutton"/>
</form>
but i dont want the user or search engines to see the params, what is the best way to get a rewrite in??
im starting to get to grips with rewrites but this has got me slightly, do i need to post the data to one form which then forwards onto a url composed of the data and then catch that url which would be clean of any '?' or '&' etc.
so searchResults.php?search=t
and then catch this address and post to the intial searchResults.php?........
but obviously the user or search engine wouldnt see this address, just the nice clean .htm url.
is this the best way to do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.