O'Reilly logo

PHP for Teens by Maneesh Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Submit Button

So far, the user can enter plenty of information. However, you can’t do anything with it! The server uses the HTML form to pass data to another program, such as one written in PHP, that will handle and deal with the information. It might email the comments to the site’s webmaster or it might display them on the site. Either way, you still need to create a way to actually submit that data! This is done with a submit button. When the user finishes entering information, she can press the submit button so the form sends the data to the PHP program to be processed.

Creating a submit button is very easy. In HTML, just use the <input /> field with the type set to submit. In most cases, it isn’t necessary to enter a name for the submit ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required