0

Just wondering, why to use an input element with out a value attribute.

is it for some security reasons ? is it included in form submission ? and if so, what value would it have?

EX:

<input type="hidden" id="X" name="x">

Thanks in advance .

Dr.Vision
  • 85
  • 1
  • 5
  • 14

1 Answers1

0

It will show up in the request as an empty variable. You can use this to check whether it is set or not.

dan-klasson
  • 13,734
  • 14
  • 63
  • 101