Results 1 to 2 of 2
Jul 24, 2012, 17:03 #1
- Join Date
- Sep 2004
- Provo, UT
- 1 Post(s)
- 0 Thread(s)
Can forms make use of mod_rewrite?
I have a simple search form that, when submitted, shows the following URL:
When I would like it to display like this:
I can do this when creating links on my site, but not sure how to change the following form:
<form action='aromatherapy.php' method=GET>
<input name=t type=hidden id='t' value='8' />
<input name=q type=text size=27 maxlength=35 />
<input class='button medium green' type=submit value='Go' />
Thanks!Convert your dollars into silver coins. www.convert2silver.com
Jul 25, 2012, 00:49 #2
- Join Date
- Feb 2002
- 19 Post(s)
- 2 Thread(s)
No a form can't make use of mod_rewrite - but that's not the real question in your mind.
What you meant to ask was a means to reformat the link displayed when submitting the form.
What I would do is simply use method="POST" rather than your method="GET". That would conceal the query string you're concerned with.
What you're really asking is whether you can use mod_rewrite to make a "loopy redirection." That answer is yes but I'll merely refer you to the tutorial linked in my signature as there are a couple of ways to do this in the sample code section. If you're not making use of reference material posted here, answering these questions constitutes "spoon feeding." Read then ask questions, if you please.