php - Form information not being 'seen' by MySQL -
i've made new log in / register template uses css3 , html, yet had working form, basic, before this. decided make 'form' should this: http://www.script-tutorials.com/css 3-modal-popups/
now, use form handle registration:
<!-- popup form #2 --> <a href="#x" class="overlay" id="join_form"></a> <div class="popup"> <h2>sign up</h2> <p> please enter details here. </p> <div> <form action="register.php" action="post"> <label for="username">username</label> <input type="text" id="username" placeholder="max 32 characters" name="username" /> </div> <div> <label for="password">password</label> <input type="password" id="password" placeholder="password" name="password" /> </div> <div> <label for="lastname">lastname</label> <input type="text" id="lastname" placeholder="lastname" name="lastname" /> </div> <div> <label for="email">e-mail</label> <input type="email" id="email" placeholder="example@hotmail.com" name="email" /> </div> <input type="submit" value="join community" /> or </form>
yet when test form, data stored (my register.php file comes if-statement), yet displays nothing. (no username, (password still gets hashed / stored, though i'm not sure if it's handling it), last name , e-mail.
i've checked , double checked 'name' attributes' value in register.php file. , correct.
pretty sure accessing form values using $_post
. problem in form tag setting action
twice, 1 of correct i.e. action="register.php"
, other action="post"
incorrect.
try:
<form action="register.php" method="post">
Comments
Post a Comment