P
pbd22
Hi.
I need some help with structuring my query strings.
I have a form with a search bar and some links. Each
link is a search type (such as "community"). The HREF
for the link's anchor looks like the following:
<a href="?searchtype=2">Community</a>
When the user clicks on the Community search type, the query string
looks like:
http://www.domain.com/test.htm?searchtype=2
Then, he puts in his search string, such as "babysitters
in los angeles".
I want the string to look like the below before the form
is posted:
http://www.domain.com/test.htm?searchtype=2?query=babysitters+in+los+angeles
But it looks like:
http://www.domain.com/test.htm?query=babysitters+in+los+angeles
How do i get the querystring to "add" the query to the searchtype and
not "replace" the searchtype with the query?
I thank you.
I need some help with structuring my query strings.
I have a form with a search bar and some links. Each
link is a search type (such as "community"). The HREF
for the link's anchor looks like the following:
<a href="?searchtype=2">Community</a>
When the user clicks on the Community search type, the query string
looks like:
http://www.domain.com/test.htm?searchtype=2
Then, he puts in his search string, such as "babysitters
in los angeles".
I want the string to look like the below before the form
is posted:
http://www.domain.com/test.htm?searchtype=2?query=babysitters+in+los+angeles
But it looks like:
http://www.domain.com/test.htm?query=babysitters+in+los+angeles
How do i get the querystring to "add" the query to the searchtype and
not "replace" the searchtype with the query?
I thank you.