O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

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

Creating Hidden Fields

Hidden fields are used to store data in the form without showing it to the visitor. You can think of them as invisible text boxes. They are often used by processing scripts to store information gathered from an earlier form so that it can be combined with the present form’s data Image.

Image When you create a hidden field, you use the variables from your script to set the value of the field to what the visitor originally entered.

<form method="post" action="whatever.php"><input type="hidden" name="name" value="<?= $name ?>" /><input ...

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