Forums Register Login

hidden variable?

+Pie Number of slices to send: Send
Dear all,

What is hidden variable and how to add and send them with request? Why we use them?

Thanks.
+Pie Number of slices to send: Send
I am guessing that you mean a hidden field in an HTML form.
As far as servlet request objects are concerned, the value in a hidden field is treated just like other form values.
You can write a value into a field when the html page is created or have Javascript put a value there.
Use hidden fields for any text value that you want to have submitted with the request but that you don't want the user to see or modify.
Bill
+Pie Number of slices to send: Send
 

Originally posted by William Brogden:
I am guessing that you mean a hidden field in an HTML form.
As far as servlet request objects are concerned, the value in a hidden field is treated just like other form values.
You can write a value into a field when the html page is created or have Javascript put a value there.
Use hidden fields for any text value that you want to have submitted with the request but that you don't want the user to see or modify.
Bill



Thanks William. I got it completely.

But, how to write them in HTML page or through Javascript? Please, could some body give me code...

Thanks.
+Pie Number of slices to send: Send
The HTML 4 Specification.

Also an excellent HTML 4 reference.
[ December 11, 2005: Message edited by: Bear Bibeault ]
+Pie Number of slices to send: Send
example is -:

<input type="hidden" name="user_name" value="">

then this field will go to next page as you submit the page but not being able to view bu the user
He's my best friend. Not yours. Mine. You can have this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1943 times.
Similar Threads
Is this illegal in JSP
Pass hidden variable to FRAMES
Relation between Interface Varable Declaration Same Implementar variable Declarateion
encode and decode url query string values
How do I get values from previous html?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:31:57.