No edit summary
Line 6: Line 6:
How to render a hidden input field that is secure
How to render a hidden input field that is secure
===Description===
===Description===
_input elements of type secure are similar to type hidden. The difference is that a secure field is not readable by a user and a form will fail if it gets altered using Browsers developer tools
input elements of type secure are similar to type hidden. The difference is that a secure field is not readable by a user and a form will fail if it gets altered using Browsers developer tools
===Parameters===
===Parameters===
type="secure"
type="secure"
Line 13: Line 13:
===Example===
===Example===
<syntaxhighlight lang="html">
<syntaxhighlight lang="html">
<_input type="secure" name="token" value="123231321" />
<input type="secure" name="token" value="123231321" />
</syntaxhighlight>
</syntaxhighlight>
This will render something similar to  
This will render something similar to  

Revision as of 10:13, 3 January 2023

Name

secure

Type

_input

Synopsis

How to render a hidden input field that is secure

Description

input elements of type secure are similar to type hidden. The difference is that a secure field is not readable by a user and a form will fail if it gets altered using Browsers developer tools

Parameters

type="secure"

All other valid parameters for an input field are valid

Example

<input type="secure" name="token" value="123231321" />

This will render something similar to

<input name="2425fb14579653aef53179a2849e4593ES5rgMk=" value="7cade404c7d02c02a3087e4fd6954caby0QljHbAPys0" type="hidden">

Note

When using action="get" a secure field will not be returned in the url

Links