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

Manipulating WW2 Fire AirCraft

In this tutorial we will be learning some indispensable techniques to use for any type of photo-manipulation. We will be doing this by taking a photograph of a model plane and editing it to to look like a photograph of a WW2 spitfire which has just been shot down and is on fire. The techniques used here are the same for any type of 'destruction' photo-manipulation. Below is the link you will learn how to create. In the second part of this tutorial we will go on to use this image in a movie poster/DVD cover design View Tutorial

Simple Hit counter

A hit counter will let us know how many times a page is accessed. Incase one visitors loads the page several times, the hit counter willincrease several times (but this is likely to happen only a few times). The code for the hit counter bellow will save the number of hits in afile named counter.txt (the name of this file may be changed). Each time the page is loaded,the file will be read, the number will be increased by one and the newnumber will be saved to the same file. Counter.php <?php //The file where number of hits will be saved; name may be changed;p.e. "/counter_files/counter1.txt" $counterfile = " counter.txt "; // Opening the file; number of hit is stored in variable $hits $fp = fopen($counterfile,"r"); $hits = fgets($fp,100); fclose($fp); //increading number of hits $hits ++; //saving number of hits $fp = fopen($counterfile,"w"); fputs($fp, $hits ); fclose($fp); //printing  hits; you may remove next lin...

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.