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

Form Elements

Let’s make the textboxes first. Type into Notepad an explanation of what the textboxes actually do. This description won’t affect the code, but your site visitor uses the explanation to understand what to put in the box. For example, I typed Name: into the Notepad document you see in Figure 3.8.

Figure 3.8. Creating a textbox.

Now you do the same: To create a textbox, use the <input /> tag with a few attributes in order to make it properly work with the page. The first attribute is type. Type tells the browser what kind of form element it’s dealing with. Because you are using a textbox, the type is text ...

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