Learn web design and programming with our free video and text tutorials.
Web Designer? Design and market your own professional website with easy-to-use tools.
This tutorial covers the post method that is used to transfer data that is entered into a form from the page the form is on to the application, script or web server that will process the data.
There are 2 methods that are used to transfer data that is submitted into a form to the application or script that will process the data: post and get.
It is generally recommended to use post method over the get method to send the submitted data.
The code to insert the method attribute wth a value of post is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>WebDevelopmentTutorials.com</title>
</head>
<body>
<form action="" method="post">
</form>
</body>
</html>