+ 2
Hi everybody. I am having trouble with something. I cannot know how one page is accessed as the button is clcked
For example, let us there is "Contact Us" button. As you click that button another page is displayed in the window. What I want to know is how this works. Thank you
3 Answers
+ 1
<form action='contact-us.html'>
<input type='submit' value='Contact Us'>
</form>
+ 1
Review the information from w3schools on get and post HTML to PHP to sql
https://www.w3schools.com/tags/att_form_method.asp
+ 1
Sardorbek
Do you mean you want the page visitor to be redirected when they click the button? if that's the case then you can use Javascript in button onclick attribute
<button type ="button" onclick="location.href='https://www.w3schools.com'">Contact Us</button>