+ Reply to Thread
Results 1 to 2 of 2

Thread: sighn up form is not working properly

  1. #1
    listysite76 is offline x10Hosting Member listysite76 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    28

    Cool sighn up form is not working properly

    my website URL=lislia.com
    please help to correct error's of my sighn up form

    blow is register.php

    PHP Code:
    include 'config.php';

       
    $firstname $_POST['name'];
    $lastname $_POST['name'];
    $email $_POST['email'];    
    $password =($_POST['password']);

    //  username already exists

    $checkuser mysql_query("SELECT email FROM users WHERE email='$email'"); 

    $username_exist mysql_num_rows($checkuser);

    if(
    $username_exist 0){
        echo 
    "I'm sorry but the e-mail you specified has already been taken. ";
        unset(
    $email);
        include 
    'index.html';
        exit();


    // lf no errors present with the username
    // use a query to insert the data into the database.

    $query "INSERT INTO users (firstname,lastname, email, password)
    VALUES('
    $firstname', '$lastname','$email','$password')";
    mysql_query($query) or die(mysql_error());
    mysql_close();

    echo 
    "You have successfully Registered";
        
    // mail user their information

    $yoursite ‘www.blahblah.com’;
    $webmaster ‘yourname’;
    $youremail ‘youremail’;
        
    $subject "You have successfully registered at $yoursite...";
    $message "Dear $name, you are now registered at our web site.  
        To login, simply go to our web page and enter in the following details in the login form:
        e-mail: 
    $email
        Password: 
    $password
        
        Please print this information out and store it for future reference.
        
        Thanks,
        
    $webmaster";
        
    mail($email$subject$message"From: $yoursite <$youremail>\nX-Mailer:PHP/" phpversion());
        
    echo 
    "Your information has been mailed to your email address."

  2. #2
    Salvatos's Avatar
    Salvatos is offline x10 Lieutenant Salvatos is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    Québec, Canada
    Posts
    271

    Re: sighn up form is not working properly

    What is the issue?

+ Reply to Thread

Similar Threads

  1. Subdomain isn't working properly
    By daniel.ernston68 in forum Free Hosting
    Replies: 1
    Last Post: 01-09-2011, 08:36 PM
  2. PHP Not Working Properly?
    By gksavannahstatewebmaster38 in forum Free Hosting
    Replies: 2
    Last Post: 11-15-2010, 08:15 PM
  3. Replies: 0
    Last Post: 09-18-2010, 11:59 PM
  4. Some php functions not working properly
    By cheesycraps in forum Free Hosting
    Replies: 2
    Last Post: 08-13-2008, 10:18 AM
  5. Site not working properly
    By purecool in forum Free Hosting
    Replies: 2
    Last Post: 11-29-2007, 07:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers