Skip to main content
  • 888 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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

Publish with us

Policies and ethics