Abstract
Dreamweaver provides you with the basic functionality of inserting and updating records in a database, but it’s up to you to make sure that the data entered by a user meets the criteria you envisaged when designing the database structure. When designing database forms, you must remember the GIGO principle—garbage in, garbage out. Unless you control carefully what you allow to go into a database, a lot of your results will be useless garbage. Many developers rely on JavaScript validation to filter user input before it’s submitted to the database, but JavaScript is easily turned off in the browser leaving your site vulnerable. JavaScript validation, such as that provided by Spry validation widgets (see Chapter 9), should be regarded as a convenience offered to the user. The only way to make sure data is safe to insert into a database is to validate it with PHP.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2009 David Powers
About this chapter
Cite this chapter
(2009). Validating Database Input and User Authentication. In: The Essential Guide to Dreamweaver CS4 with CSS, Ajax, and PHP. Apress. https://doi.org/10.1007/978-1-4302-1611-7_15
Download citation
DOI: https://doi.org/10.1007/978-1-4302-1611-7_15
Publisher Name: Apress
Print ISBN: 978-1-4302-1610-0
Online ISBN: 978-1-4302-1611-7
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books