Hidden form fields

Is there a way to post some values ​​in a form without using hidden fields?

The user should not read these values ​​while checking the DOM.

+3
source share
5 answers

You can use hidden fields to publish data. But if you want the user to not be able to read the values ​​set in the hidden field, you can encrypt the value before setting in the hidden field, and then set it.

That way, no one except you who knows how to decode a value can read it.

Hope this helps.

+3
source

AJAX can send any values ​​that you like, regardless of whether they appear or not in the form.

0
source

, , . , -, .

  • , .

  • ssl (https://) , . , .

, , , 100% ( ), .

0

http://www.tonymarston.net/php-mysql/showsource.php?file=std.encryption.class.inc

http://www.tonymarston.net/php-mysql/showsource.php?file=encryption.php

-

http://www.tonymarston.net/php-mysql/encryption.php

:

<form >
<input type="hidden" name="data value="<?php echo($encryptedData); ?>" />
</form>

<?php setcookie("formdata", $encryptedData, time()+3600);  /* expire in 1 hour */ ?>

Then at the other end you can decrypt the data using your password.

0
source

If I read your question correctly, no, not really.

If you give something to the user and return it, the user can change it.

Why do you need this functionality? If you give us some context, I am sure you will get a final answer.

0
source

All Articles