HTML form

<form> tag in HTML

The <form> tag used is to place the HTML controls, it is also used to send form data's to the server.

This tag is commonly used to retrieve data's given by the user and sends it to server.

It is commonly used in Sign In and Sign Up process.


Try Yourself

samplePost.php file

The above html code will call the following php file, when you press the submit button, the values are passed to the below php code, and you can see the results returned from the php code.

If you dont know php, dont worry. We will see it in php tutorials.