gongpex Posted April 8, 2014 Share Posted April 8, 2014 hello everyone, when I tried to input password on password form, my PHP can't to display it's value, so it cause unable to recorded on database, this is my simple form : reg.php <form name="fm_submit" id="fm_submit" action="reg-conf.php" method="post"><input type="password" maxlength="16" class="inpt-fm" name="u_pass" id="u_pass" /></form> and this the destination reg-conf.php $u_pass = $_POST("u_pass"]; when I put : echo "$u_pass"; it didn't show anything Q : what's mistake on my code? please help thanks Link to comment Share on other sites More sharing options...
thescientist Posted April 8, 2014 Share Posted April 8, 2014 you should turn on error reporting. unless this is a copy / paste error, this looks like a syntax error $u_pass = $_POST("u_pass"]; You should have a left square bracket, not a left parenthesis. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now