Skip to Content
PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
book

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

by Larry Ullman
May 2003
Intermediate to advanced
592 pages
14h 28m
English
Peachpit Press
Content preview from PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

Registration

The registration script was first started in Chapter 6, “Using PHP and MySQL.” It has since been improved upon in many ways. This version of register.php will do the following:

  • Both display and handle the form

  • Validate all the submitted data using regular expressions

  • Redisplay the form with the values remembered if a problem occurs (the form will be sticky)

  • Process the submitted data using the escape_data() function from the mysql_connect.php script

  • Ensure a unique username

The Database Scheme

The database being used by this application was first created back in Chapter 4, “Introduction to SQL and MySQL,” and has been modified since then. The database consists of only one table, users, that can be re-created using the SQL command

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

Larry Ullman

Publisher Resources

ISBN: 0321186486Purchase book