Can some one help me how to send hidden variables in a URL?
how to send hidden variables through URL?
Collapse
X
-
Tags: None
-
-
Hidden vars
Suggesting that someone use mod_rewrite, without any sort of context to the answer, isn't particularly useful. And, in this case, it's probably not the right answer.
The question implies that you want to take hidden form variables and put them in the URL. They won't be hidden any more. mod_rewrite won't help with this.
What you need to do is use POST rather than GET as your form METHOD. The only context in which hidden form fields make any sense at all is when you POST them.Comment
-
-
And the answer is...
You can't hide the variables...
Only <input type="hidden".. . /> as part of a 'post' form will be hidden and someone with 'sniffing' ability could see those anyway. As a matter of fact, anyone who knows what they're doing will be able to review and modify your page(s) on the fly and see what's in the hidden fields anyway.
Don't fret over that which you can't control and focus on those areas that you can - that's my advice anyway.
If you really want to protect the contents of the variable, you could use PGP JavaScript encryption. See: http://www.google.com/search?hl=en&q=javascript+pgp for a start.Comment
Comment