Jump to content

udaikr

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by udaikr

  1. hello friends i am new in php ,want to add form with database ,but a error appeared ,
    ( ! ) Notice: Undefined variable: name in C:wampwwwyour_mailregister.php on line 26 Call Stack # Time Memory Function Location 1 0.0521 142664 {main}( ) ..register.php:0 ( ! ) Notice: Undefined variable: email in C:wampwwwyour_mailregister.php on line 26 Call Stack # Time Memory Function Location 1 0.0521 142664 {main}( ) ..register.php:0
    this is my code can anyone help me.
    if(isset($_POST['name'])){
    $name = $_POST['name'];
    $email = $_POST['email'];
    $password = $_POST['password'];
    }
    $query = "INSERT INTO users
    (id,name,email,password,added_date,modified_date,status)
    VALUES
    ('','$name','$email','$password','NOW()','','0') ";
×
×
  • Create New...