Main.asp?Type=Results&Submit=Search& Term=KISS& Cat=3
Pattern: Search/([_0-9a-z-(-)-,-]+)/([_0-9a-z -(-)-,-]+)
Rewrite URL: Main.asp?Type=Results&Submit=Search& Term={R:1} &Cat={R:2}
Search/KISS/3
When I click search, the URL does not get re-written.
It stays with the same URL
Main.asp?Type=Results&Submit=Search&Term=KISS&Cat=3
Here is the search box.
<form action="//192.168.2.12/Main.asp">
<input type="hidden" name="Type" value="Results">
<table style="text-align:left; vertical-align:top;">
<tbody><tr>
<td style="border:1px #000000 dotted; font-size:12px;">Search<br />
<input type="submit" name="Submit" value="Search" tabindex="3">
<input name="Term" type="text" tabindex="1" width="200" value="KISS" onBlur="javascript:if (this.value == '') this.value = 'Search';" onFocus="javascript:if (this.value == 'Search') this.value='';">
<br />
<select class="FormUnits" name="Cat" tabindex="2">
<option value="3">Artist</option>
</select>
</td></tr>
</tbody></table>
</form>
When I click search, the URL does not get re-written.
It stays with the same URL
Main.asp?Type=Results&Submit=Search& Term=KISS& Cat=3
Well, I do not like how the new CODE block works on EE.
It messed everything up, which is the reason for posting the code the way I just had to do.
As always, Ryan you are the best, my friend.
Have a-Rockin' week.
Wayne
Worked great, just had to add in a replace in it, and works like a champ.
(See below)
.replace(/ /g,"_")
Have to remove the spaces from between the words typed in.
Love it, works great!!!
what's the exact issue you're facing right now?
if you mean to change form posting action URL based on user's inputs?