I have a simple form in which I have 3 hidden fields, through which I am passing values to another page.
But I don\'t want anyone to see it through view page so
As already said, $_SESSION
is the way to go.
If you can't, there ARE ways to protect hidden fields, with a certain amount of security.
The solution is
1. encoding the data and sending the encoded data and the hash,
2. validate if the data has been changed on the 2nd page and de-code it there.
If you are interested, leave a comment and I'll provide some examples.