using url rewrites when posting a form
Posted on 2006-11-29
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"/>
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?