nevets2001uk
IS-IT--Management
I have a search engine working on my site now and currently pass the original search from page one to page two through the form POST method.
However I would rather pass the variable in the URL as I am allowing users to page results and bookmark searches. I have done this within my paging using the following code...
<a href="<% =strURL %>?search=<% =Server.URLEncode(searchstring) %>&page=<% =PageCurrent+1 %>">[Next
>>]</a>
This works correctly. How would I pass my original search when a button is clicked on a form? I tried...
<form action="search_results.asp?search=" &<% =Server.URLEncode(PartNo) %> method=POST>
but this made no difference.
Any ideas?
Steve Gordon
However I would rather pass the variable in the URL as I am allowing users to page results and bookmark searches. I have done this within my paging using the following code...
<a href="<% =strURL %>?search=<% =Server.URLEncode(searchstring) %>&page=<% =PageCurrent+1 %>">[Next
>>]</a>
This works correctly. How would I pass my original search when a button is clicked on a form? I tried...
<form action="search_results.asp?search=" &<% =Server.URLEncode(PartNo) %> method=POST>
but this made no difference.
Any ideas?
Steve Gordon