Hi everybody. I am having trouble with something. I cannot know how one page is accessed as the button is clcked | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

22nd Mar 2020, 11:12 PM
Sardorbek
Sardorbek - avatar
3 Answers
+ 1
<form action='contact-us.html'> <input type='submit' value='Contact Us'> </form>
22nd Mar 2020, 11:40 PM
Ore
Ore - avatar
+ 1
Review the information from w3schools on get and post HTML to PHP to sql https://www.w3schools.com/tags/att_form_method.asp
23rd Mar 2020, 12:41 AM
BroFar
BroFar - avatar
+ 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>
23rd Mar 2020, 3:06 AM
Ipang