O'Reilly logo

Sams Teach Yourself CGI in 24 Hours, Second Edition by Rafe Colburn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hidden Form Fields Example

I’m going to use a very simple example to illustrate how hidden form fields can be used to preserve client state from one form to the next in a multiple form application. This example is simplified by leaving out all form validation code, and by using very few form fields.

If form validation was included, the application would have to verify that the user input in each stage of the application was valid before moving on to the next form. Adding more form fields is easy—you just have to determine which form to place them in, and be sure that you replicate them in each following form using hidden form fields.

In this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required