Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

16. Forms > Creating Forms

Creating Forms

A form has three important parts: the form element, which includes the URL of the script that will process the form and its method (post or get); the form elements, like fields and select boxes (checkboxes, drop-down menus, and radio buttons); and the submit button, which triggers sending the data to the script listening on the server Image.

Image Every form has three parts: the form element, the actual form elements where the visitor enters information, and the submit button (or active image) that sends the collected information to the server.


<form method="post" action="showform.php">
    <fieldset>
       <h2 class="account">Account</h2>
       <ul>
          <li>
             <label for="first_name">First Name:</label>
             <input type="text" id="first_name" name="first_name" class="large" />


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint