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
-2
votes
1 answer

json_decoded hidden POST value doesn't return anything (or returns empty)

SOLUTION: As var_dump shows, the quotes were swapped with ascii (?) 'emails2bsent' => string '["email1@gmail.com","email2@gmail.com"]' Running preg_replace and forcing them being changed back to regular quotes solved the…
Greg Bialowas
  • 123
  • 1
  • 17
-2
votes
1 answer

how to pass repass an image file from $_FILES?

I'm trying to make a two-step form on PHP. On the first step the form asks form some data and and an image. On the second step it asks for some more data and I repass the data from the first step through a input type hidden. Is there a way to pass…
-2
votes
1 answer

Why doesn't JavaScript set h:inputHidden value?

I saw many examples and did the same but I cannot set value with JavaScript. There is my code and JavaScript if (navigator.geolocation)…
Bohdan Z.
  • 320
  • 1
  • 4
  • 22
-2
votes
2 answers

hidden field in html with jquery as the image viewer

I have posted questions on hidden field previously and the name was duplicated and now I have problems with the text box. I am using a jquery for my image viewer. And at the same time, I want to have hidden fields. However, with the textbox, it…
nurf
  • 26
  • 1
  • 6
-2
votes
1 answer

How to hide the selected arraylist?

The code that i use for arraylist and the way i code for hide the arraylist is like this
newbie
  • 41
  • 11
-3
votes
1 answer

How To Secure Hidden Id When Post The Form

I have a form And when the user submits the data, I want to secure the hidden field that he can't change the id "value".
-3
votes
1 answer

How do I print array values in form field in PHP?

I want to print the value of form fields using an array. I have two fields in file1.php, name and email, which I am passing to file2.php using post and storing it in an array.
-3
votes
1 answer

Show value to the page

I would like to show the data that has been passed by the hidden fields on a page. For example, I put a hidden field on page1 and then sends it on page2 then I added another value hidden field. I want to see all hidden data on page3. thank…
Eric
  • 1
  • 2
-3
votes
2 answers

How to get the html filed value in php

I have made an hidden html field How I can get this value with out submitting the page
Muhammad Usman
  • 9,182
  • 21
  • 69
  • 104
-4
votes
1 answer

Hidding field for a particular time

I have a text field that I need only to display for a certain period of time. I need it to appear after 5pm and stop appearing at 7am daily. The piece of text has been saved as a variable. How do I do this? Thanks
L.Can
  • 1
-4
votes
1 answer

django hidden fields can be required?

I think, that values for Hidden fields are completly ignored by Django during POST. no cleaned_data for that field No way to change it and most important: If required causes error "Enter a list of values." even if you can see that values in code: …
Tomasz Brzezina
  • 1,083
  • 5
  • 15
  • 38
-4
votes
1 answer

Passing variables to hidden form fields with JavaScript

Can someone suggest an alternative to the following code for passing hidden form field values? Thanks in advance for suggestions //Working Fine but breaks some forms document.write("
user1505467
  • 1
  • 1
  • 2
-5
votes
1 answer

I get some error in PHP, what can I do?

So, I made a calculator in PHP, which writes the result and that how much time used the calculator. The first time I get some error, but when I click any submit button, the program work perfectly. What can I do with first time errors? The…
Mistic
  • 41
  • 4
1 2 3
60
61