Link to home
Start Free TrialLog in
Avatar of scm0sml
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=tenby&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?
ASKER CERTIFIED SOLUTION
Avatar of HackneyCab
HackneyCab
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial