Rayben Posted January 19, 2007 Share Posted January 19, 2007 Hi!I'm making a loggin system and I wonder if it is risk to keep a password in the $_POST variable?I read a tutorial where the author did this:[code]<?php$_POST['password'] = md5($_POST['password']);?>[/code]Is it possible to change the $_POST variable just like that? Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 19, 2007 Share Posted January 19, 2007 Did you try it?I would just take it out of the $_POST for later use, $password = md5($_POST['password']);But why are you asking us if it's possible if you read it and could easily test it? Quote Link to comment Share on other sites More sharing options...
Nameless12 Posted January 19, 2007 Share Posted January 19, 2007 Post variables are not variables, they are not magic. php just happens to store the post data inside an array called $_POST. So whats the point? you can do anything to $_POST that you can with an array and you can do anything to $_GET that you can with an array. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.