I am working on a search project. I am new to html, css, etc., and haven't the slightest idea of how to accomplish this. Here is my idea in simplest form:
https://www.example.com/results.aspx?q=(USER SEARCH HERE)
I have tried researching the topic but have not found anything useful on it. Everything is very unclear. If anyone can find a tutorial, or tell me what I might be doing wrong, that would be greatly appreciated. 🙂
Thanks in advance for any help that was given!
This is the very default behaviour of a form
with the action
attribute applied:
<form action="results.aspx">
<input type="text" name="q">
<button>Search</button>
</form>
Writing "Hello" in the input and pressing the search button or pressing enter, results in a URL like:
https://www.example.com/results.aspx?q=Hello
Giving the input another name, like name="search"
, results in a URL like:
https://www.example.com/results.aspx?search=Hello