HTML forms allow users to enter and submit data from your website.
Note: In order for a form to process, you'll need a processing script. Processing scripts are built with server side scripting languages such as PHP, Python, ASP and more.
<form method="post" action="someScript.php"> <p> <label>Name</label><br> <input type="text" name="name" placeholder="Your Name"> </p> <p> <label>Email</label><br> <input type="email" name="email" placeholder="Your Email"> </p> <p> <label>Message</label><br> <textarea name="message" placeholder="Your Message Here"></textarea> </p> <p> <input type="submit" name="submit" value="Send"> </p> </form>
The above is an example of a simple contact form. If you submit the form you will see a 404 Error page because the script it is looking for does not exist. You will learn how to create a form processing script in later tutorials.
This website and it's tutorials are only made possible with your support. Support money goes towards keeping our servers online.
Spread the word! Let people know about our tutorials by placing links on blogs, websites, forums and other places.
Copyright 2019 Step By Step HTML. All Rights reserved.