HTML/CSS/Form Style/Hidden controls — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 08:17, 26 мая 2010

A hidden control - view source to see its content

 
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
  <title>A hidden control - view source to see its content</title>
</head>
<body>
To see the contents of the hidden form control go to the View menu and choose the option to view the source for this page:<br />
<form action="" method="get" name="fromVote">
  <input type="hidden" name="hidPageSentFrom" value="home page" />
  <input type="submit" value="Click if this is your favorite page of our site." />
</form>
</body>
</html>



hidden inputs contain non-visual information

 
<?xml version = "1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
   <head>
   </head>
   <body>
      <form method = "post" action = "/cgi-bin/formmail">
         <p>
            <input type = "hidden" name = "recipient" value = "d@d.ru" />
            <input type = "hidden" name = "subject" value = "Feedback Form" />
            <input type = "hidden" name = "redirect" value = "main.html" /> 
         </p>
      </form>
   </body>
</html>