Hello again, im just asking if is it possible to hide parameters?? my URL shows like this: http://localhost/AAI/administrator/index2.php?admin_menu=2&subContent=2&hsch_account=3 i want to hide the characters in red font...
-_- heres my sample script, redirection, with parameter passing file1.php <a href=\"index2.php?admin_menu=2&subContent=2&hsch_account=2&search=1\">MANAGE Highschool Accounts</a></li> PHP: file2.php echo $_GET['admin_menu']; // <<---- if i use post here, it wont catch the parameter from file1.php PHP: how could i hide characters in the URL?? some say that there is a way
Instead of linking to the page, add an onclick event listener that submits a form with 'post' method. <a href="javascript:void(null);" onclick="document.getElementById('myform').submit();">MANAGE Highschool Accounts</a> <form id="myform" action="index2.php" method="post"> <input type="hidden" name="admin_menu" value="2" /> <input type="hidden" name="subContent" value="2" /> ... </form> HTML: Not the cleanest way to do it, but I think is easy to understand.
http://localhost/AAI/administrator/index2.php?admin_menu=2&subContent=2&hsch_account=3 you can Encode the all thing and then decode it (i show the base64 way , you can make one on your own) ppls can crack it ,( just for you to know)
I think phper's will be the safest way, I tried BASE 64 encode, its the same process, the only thing is its hashed. Thanks anyways.. Problem Solved!