Working with Submit Buttons

Clicking a submit button (Figure 68.11) sends off the data of the form for processing. Where the form data goes appears in the form tag's action attribute, and how the form data goes appears in the form tag's method attribute.

Listing 68.11. View Source for Figure 68.11.
<form action="/forms/process.php" method="POST">
  <input type="submit" name="formSubmit" value="Submit Form">
</form>
Figure 68.11. A submit button sends the form data to the Web server for processing.

In this example, clicking the submit button sends the form data via the POST method. The submission follows the root-relative ...

Get Web Design Garage now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.