Jump to content

unable to display value from input type password form


gongpex

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...