Forum Moderators: open
In the form action you can define a static query string ('action="searchresults.asp?query=widgets"') but is there a say to make the query variable be dynamic?
My thought was to have no action for the form and instead of a submit button just make a submit link which would use ASP to redirect to the searchresults page and append the keyword from the form. But the problem is that pressing enter on the form would no longer work, you'd have to click a link.
Any other ideas? Thanks!
e.g.
<form action="searchresults.asp" method="get">
<input name="query" type="text" />
<input type="submit" value="Search" />
</form>
That way the form request would be passed on the querystring (which is what I think you are looking for).
Regards,
Mark