ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

27-HTML Hidden Field

Hidden fields allow a developer to submit values to form elements precisely.

 

A web developer used these fields as session-based data to pass it from a form to another form or put data that has been placed by the users.

 

Example:

<form name="myForm" action="process.php" method="post">
Firstname: <input title="Enter Your First Name" id="fname" name="fname" type="text" size="16" maxlength="16" />
Lastname: <input title="Enter Your Last Name" id="lname" name="lname" type="text" size="16" maxlength="26" /><br />
Password: <input type="password" title="Enter Your Password" size="20" maxlength="20" /><br /><br /><br />

<input type="hidden" name="itemId" id="itemId" value="0024" /> 

<input type="submit" value="Save" /><input type="reset" value="Reset" />
</form>
Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!