• Have Any Question?
  • contact@eitworld.com

HTML Hidden Form Controls





  • Hidden form controls are used to hide data inside the page which later on can be pushed to the server.
  • This control hides inside the code and does not appear on the actual page.
  • Here is an example of hidden control, following hidden form is being used to keep current page number. When a user will click next page then the value of hidden control will be sent to the web server and there it will decide which page has be displayed next based on the passed current page.:

Example


#include<iostream.h>
int main()

{

const int a=10;/*constant declaration*/

printf(“nvalue of a is:%d”,a);

return 0;

}

 

To see live output : Visit Try Yourself Editor

Output

form



Real Time Web Analytics