Abstract
HTML Forms have many usages, ranging from a simple contact form to a way to collect and edit data in a web-based application. Forms can be created as a static section of HTML or it can be dynamically generated with PHP based on a set of data from a database or another source. No matter how the form is generated it's good practice to validate the input before the form is submitted. This will help prevent data errors and the user will be able to correct errors without having the data sent to the server for validations. It is also necessary to validate the contents of the POST request before data is inserted into the database or otherwise used on the server.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Frank M. Kromann
About this chapter
Cite this chapter
Kromann, F.M. (2016). Creating and Using Forms. In: PHP and MySQL Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0605-8_13
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0605-8_13
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0606-5
Online ISBN: 978-1-4842-0605-8
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)