HTML and CSS Reference
In-Depth Information
Figure 5-2 The newly created Bookings page.
The action Attribute
The action attribute is used to specify the location of the file that the form data should be sent to. This should be
an absolute or relative path. The file referenced in the action attribute would then perform an action, such as sav-
ing the data to the database or checking a user's log-in details.
For more information on absolute and relative paths, check out the “Relative and Absolute Paths” section in
Chapter 2.
If you look at the form that you just added to the Bookings page, you can see that the action attribute references a
bookings.php file.
<form action=” bookings.php ” method=”POST”>
Search WWH ::

Custom Search