Skip to main content

Hidden Fields in Html Forms

What are Hidden Fields?
Hidden fields are numbers of uses in browsing session. Suppose you have some hidden Database Mechanism or some value or something hide which is very useful to hide your Sql Queries. Receive queries or input text from users and hide them in  hidden field then pass it to another page this is the main work of hidden field.

Hidden Field Code:
<input type="hidden" />
Hidden Field Example:

There is no display of hidden fields because it can't be seen by user nobody can see it but it is holding some value in background of your page same like i made and there is no preview. Now give it some value and we will give it name and id so we can use it in our server scripts.
Hidden Field with Name and Id Attribute:

Hidden Field Code:
<input type="hidden" name="age" id="age" />
Hidden Field Example:
This is the hidden field with name and id attribute. It's hidden because this is already hidden.

Hidden Field with Value Attribute:

Hidden Field Code:
<input type="hidden" value="50" />
Hidden Field Example:

This is the hidden field with value attribute.

Comments

Popular posts from this blog

Italics in Html

The italics tags use to highlight the fonts but not like bold it makes your font just like dance a step. These tags are not intended to to style your font. It's use to emphasize your fonts. Code: Italic <i>tag</i>! <em>Emphasized</em> Text! Example: Italic tag ! Emphasized Text! Code: <b>HTML</b> <i>Hyper Text Markup Language</i>  or <b>HTML</b> <em>Hyper Text Markup Language</em> Example: HTML Hyper Text Markup Language or HTML Hyper Text Markup Language Code: <p>Johnson is <b><i>DR.</i></b></p> Example: Johnson is DR.

Submit Buttons in Html Forms

Submit buttons are use to submit the forms whenever user registration is needed submit buttons always used. How to make those submit buttons? Just simple you can make submit buttons if you know the <input> tag then make it's type= submit value="some name" just like submit, send etc. Submit Buttons Code: <input type="submit" value="Submit" /><br /> <input type="submit" value="Send" /><br /> <input type="submit" value="Submit Form" /><br /> Submit Buttons Example: Submit Buttons in Action Code: <form method="post" action="mailto:pateltutor1@gmail.com" > Name:<input type="text" name="First" size="12 maxlength="12" /> Email:<input type="text" name="Last" size="24" maxlength="24" /> <input type="submit" value="Send Email" /> </form> ...

Reset Buttons in Html Forms

Reset Buttons: Reset buttons are use to reset the forms in Html. Sometime users put wrong information then the users don't be worry of removing whole the fields and fill them again just press the reset button and whole the form back to their original state. That's very useful for the user. Html Code: <input type="reset" value="Reset" /> <input type="reset" value="Start Over" /> Html Code: Reset Button in Action: Now we are giving some action for your understanding what reset button done don't panic we give some form tags and other just visit Forms in Html you will also learn how to make it. Reset Button Code: <form action="xyz.php" method="post"> First Name: <input type="text" size="20" maxlength="12" /><br /> Last Name: <input type="text" size="24" maxlength="24" /><br /> <input type="reset" value=...