当用户点击链接时,有哪些选项或方法可以将变量传递给另一个URL? [关闭]
问题描述:
I have two ways to do it but I'm still weighing the options.
1st option : Using GET method to retrieve variables from the url.
2nd option : Using GET to retrieve the variables and post it to the url so that variables will be hidden.
<a href="mysurvey_status.php --$variable--"> Status Summary</a>
I need this variable to execute my PHP function to display my table on the other page.
答
The only way to hide you variables is to store them on server side and use session
to pass them between scripts.
POST variables are not hidden at all, there are many ways to reveal them.