Questions tagged [hidden-field]

An HTML Input element that users do not see or interact with. It can hold a value and is often used to store client-side variables.

As defined from w3.org:

An INPUT element with `TYPE=HIDDEN' represents a hidden field. The user does not interact with this field; instead, the VALUE attribute specifies the value of the field. The NAME and VALUE attributes are required.

For example:

<input type=hidden name=context value="l2k3j4l2k3j4l2k3j4lk23">

This element is available in the following versions of HTML:

  • HTML 3.2
  • HTML 4.0
  • HTML 5
  • XHTML 1.0

It is important to note that users are able to see the hidden values if they view the source of the page. Hidden fields should never be used to store sensitive information like passwords or credit card information. A good programming guideline is to only use the hidden field to store information that the page has generated or information the user would not know or understand.

913 questions
-1
votes
1 answer

XSLT and PHP: $_REQUEST in hidden field

I am posting hidden values in hidden fields to another form like this:
Kieran
  • 600
  • 2
  • 17
-1
votes
1 answer

PHP: Serializing/Deserializing hidden array in form

Working with PHP 5.5.9 I'm trying to send a hidden serialized array to a form. I have the form and the action script in the same file, using
I initialize the array at the beginning…
rodrunner
  • 1,460
  • 4
  • 16
  • 30
-1
votes
2 answers

Rails - Conditional statement in form recognizing wrong url paramater

I have a polymorphic relationship between Attachments and Users & Teams so that both users and teams can upload attachments. The :team_id or :user_id is passed along as a param when the "Add file" button is clicked. Then, a hidden field in the…
ncarroll
  • 108
  • 1
  • 1
  • 10
-1
votes
2 answers

Hidden Field Value in JavaScript is not posted

this error is (again) discussed a thousand times in different forums, but I don't find anything that would help me with my problem. I have a form, a hidden field and some links, that change the value of this field and submit the form. I checked it…
Marcel Grüger
  • 750
  • 1
  • 5
  • 21
-1
votes
1 answer

How to add hidden control in OpenUI5?

I would like to add a hidden control in Open UI5 framework.Can any one help me on this?
user416
  • 464
  • 3
  • 11
  • 29
-1
votes
2 answers

Div id to the input value

I have a div
This prints an id for each product on the page. Ex: 26588 How do I assign it to a hidden input value ?
"> Not like of course :=)
Extropy
  • 13
  • 1
  • 1
  • 5
-1
votes
2 answers

Get updated HiddenField Value in code behind

I have a LinkButton in aspx page where on OnClientClick I am updating the value of Hidden Field, and on OnClick I am saving that value to the database.
Gopesh Sharma
  • 5,725
  • 4
  • 23
  • 34
-1
votes
2 answers

Is the posted value for a form input, where type=hidden, a string?

I am trying to streamline my php for my current website. Typically, I have treated (successfully) submitted form values using the == operator, as follows;
-1
votes
2 answers

jQuery Validation Plugin Cannot Ignore Hidden or Disabled fields

I use jQuery Validation Plugin and I want to validate some hidden/disabled fields besides the other fields. Although every fields can be validated properly, I have some trouble with the hidden/disabled fields. At this point: 1) I hide a Textbox…
Jack
  • 1
  • 15
  • 75
  • 149
-1
votes
2 answers

Embed Input field to Hyperlink in MVC

Is it possible to pass an hidden field value from Razor View to Controller inside or tag? As the field is hidden, it is really a problem to pass its value to the Controller. On the other hand I think the only way to pass this hidden field is using…
Jack
  • 1
  • 15
  • 75
  • 149
-1
votes
1 answer

Take value of hidden field in haml

I am new on Rails. I have a hidden field and a toggle button in haml. How can i take the value of the hidden field and if is 0 then i change the class of the button to active. I use coffescript to set a value to the hidden field. Thanks
-1
votes
3 answers

Export to Excel - Hidden Field not generating results

I've a simple CFC file that contains the different functions for different queries & a separate function that displays the reports dynamically based on the queries. All the queries work except one which returns approx. 50k rows. Its just a blank…
Crash OR
  • 227
  • 1
  • 3
  • 13
-1
votes
1 answer

Check Hidden Input Fields Based On Radio Button Selected

I HAVE searched on here but, despite finding LOTS of similar and most likely MUCH more complicated situations, couldn't find an answer to what I am wanting to do. Basically, on my site's search form I want to present 2 radio button…
Denny
  • 13
  • 5
-1
votes
1 answer

how to read value of hidden field from page source

I want to retrieve value of a hidden filed which changes with every request send to server. For e.g when i first access the page the sessid=90334 and at the next page its like sessid=78204. The pagesource contains a tag like this
android_newbie
  • 627
  • 2
  • 13
  • 30
-2
votes
1 answer

How do I Send a Value From a View to a Controller

I am trying to get the id of a newly created row in a database table so that I can use it later. But it does not get passed it stays only in the viewer. I need that id after the tab or window is closed. I know there may be other ways of finding that…
roi
  • 7
  • 2
1 2 3
60
61