php processing name vs. id field
| From: | David Mehler | Date: | Thu, 01 Jul 2010 01:16:18 +0000 |
| Subject: | php processing name vs. id field | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-306583@lists.php.net to get a copy of this message | ||
Hello,
I've got a php form processing question. I've got a text field like so:
<div>
<label for="txtname">Name*:</label>
<input type="text" name="name" id="name" size="30"
value="<?php echo
htmlspecialchars($_POST['name']), ENT_QUOTES, UTF-8; ?>" /> <br />
</div>
My question is what is the purpose of the id field? I know the name
field is what php references, but am not sure what id is for?
Thanks.
Dave.