where to add confirm password tag

this is form tag


Username
Password
Confirm Password
E-mail






and


this is error code

<?php
include('connect_login.php');
if($_POST['button4']){
$username = $_POST['username'];
$password1 = $_POST['password1'];
$password2 = $_POST['password2'];
$Email = $_POST['Email'];
}
$sql = "INSERT INTO `text`.`see` (`id` ,`username` ,`password` ,`E-mail` )VALUES ('', '$username', '$password1', '$Email');";
mysql_query($sql);
?>


my question is how to add password in database by what code?

Comments

  • Your code is OK. If it cant save in the database, it could be because the connection the file connect_login.php could not be found or the mySQL username, password or servername are incorrect.

    make sure the table see in database text exists. If field id is auto increment then change your SQL from $sql = "INSERT INTO `text`.`see` (`id` ,`username` ,`password` ,`E-mail` )VALUES ('', '$username', '$password1', '$Email');"; to $sql = "INSERT INTO `text`.`see` (`id` ,`username` ,`password` ,`E-mail` )VALUES (NULL, '$username', '$password1', '$Email');";

  • table is exist but $password1 not available in sql database due to i can not define variable correctly.
    my question is asking how to correct the variable between confirm password($password2) and password($password2)
  • Ok. On the form, change



    to



  • thxXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX q
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion