Just by using the <form> tag mate, then in the action put the page you want to take the user to after they hit submit, which is either that same page, or another one.
Best to use the POST method, and filter what the person enter’s.
plz dont send folks to w3schools. it is a scumbag site.