Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 4 123 ... LastLast
Results 1 to 15 of 49
  1. #1
    New Coder
    Join Date
    Jun 2014
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question php registration confirmation

    My dear,
    Please check now the page register the account but unable to verify it.
    also tell that where you taking the files
    $query_verify_email = "SELECT * FROM members WHERE Email ='$Email'";
    36 $result_verify_email = mysqli_query($dbc, $query_verify_email);
    37 if (!$result_verify_email) { //if the Query Failed ,similar to if($result_verify_email==false)
    38 echo ' Database Error Occured ';
    are you making modifications or also you are using below .
    I understand below there are certainly you are suggesting a modification in the later discussion?
    Yes?
    Are you?

  • #2
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,286
    Thanks
    12
    Thanked 344 Times in 340 Posts
    you’ve sent a query, but did not fetch the result.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

  • #3
    New Coder
    Join Date
    Jun 2014
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts

    registration erro on confirmation

    Quote Originally Posted by Dormilich View Post
    you’ve sent a query, but did not fetch the result.
    my dear,
    Actually the problem is the following.
    please handle it carefully?
    Dear Sir,
    My files are hosted at Registration Form.
    After account creation it sends the activation link on the email. But the link that is sent to email will not be able to activate the account.
    There is need to activate the account from the database server etc. or what other problem.
    I am following the tutorial at Building A registration System with Email verification in PHP
    Thanks
    Best regards
    Adnan shahid

  • #4
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,286
    Thanks
    12
    Thanked 344 Times in 340 Posts
    But the link that is sent to email will not be able to activate the account.
    you would have to show us your code …
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

  • #5
    New Coder
    Join Date
    Jun 2014
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts

    code

    my dear,
    code is shared.
    please find the attached file?
    thanks in advance.

  • #6
    New Coder
    Join Date
    Jun 2014
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts

  • #7
    New Coder
    Join Date
    Jun 2014
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question code

    my dear,
    have you received the code?

  • #8
    New Coder
    Join Date
    Jun 2014
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts
    please find code here.
    http://we.tl/lRFgf9SCgF

  • #9
    New Coder
    Join Date
    Jun 2014
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts
    please confirm me that you find the code.

  • #10
    New Coder
    Join Date
    Jun 2014
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts
    please check it urgently?
    i need it urgent.
    thanks
    adnan

  • #11
    New Coder
    Join Date
    Jun 2014
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question reply

    please check it urgently?
    i need it urgent.
    thanks
    adnan

  • #12
    New Coder
    Join Date
    Jun 2014
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I am waiting it on urgent basis?

  • #13
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,286
    Thanks
    12
    Thanked 344 Times in 340 Posts
    I do not download arbitrary code. just post it here in the thread wrapped in code tags.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

  • #14
    New Coder
    Join Date
    Jun 2014
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts

    previous problem solved and new created after adding forgot password field

    Quote Originally Posted by adnan_shahid89 View Post
    this is the forgot.php
    <?php session_start();
    include "connect.php"; //connects to the database
    if (isset($_POST['username'])){
    $username = $_POST['username'];
    $query="select * from user where username='$username'";
    $result = mysql_query($query);
    $count=mysql_num_rows($result);
    // If the count is equal to one, we will send message other wise display an error message.
    if($count==1)
    {
    $rows=mysql_fetch_array($result);
    $pass = $rows['password'];//FETCHING PASS
    //echo "your pass is ::".($pass)."";
    $to = $rows['email'];
    //echo "your email is ::".$email;
    //Details for sending E-mail
    $from = "Coding Cyber";
    $url = "http://myproject.6te.net";
    $body = "Coding Cyber password recovery Script
    -----------------------------------------------
    Url : $url;
    email Details is : $to;
    Here is your password : $pass;
    Sincerely,
    Coding Cyber";
    $from = "codingcyber@gmail.com";
    $subject = "CodingCyber Password recovered";
    $headers1 = "From: $from\n";
    $headers1 .= "Content-type: text/html;charset=iso-8859-1\r\n";
    $headers1 .= "X-Priority: 1\r\n";
    $headers1 .= "X-MSMail-Priority: High\r\n";
    $headers1 .= "X-Mailer: Just My Server\r\n";
    $sentmail = mail ( $to, $subject, $body, $headers1 );
    } else {
    if ($_POST ['email'] != "") {
    echo "<span style='color: #ff0000;'> Not found your email in our database</span>";
    }
    }
    //If the message is sent successfully, display sucess message otherwise display an error message.
    if($sentmail==1)
    {
    echo "<span style='color: #ff0000;'> Your Password Has Been Sent To Your Email Address.</span>";
    }
    else
    {
    if($_POST['email']!="")
    echo "<span style='color: #ff0000;'> Cannot send password to your e-mail address.Problem with sending mail...</span>";
    }
    }
    ?>
    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="style.css" />
    <title>CodingCyber - Simple Script to send Forgotten password</title>
    </head>
    <body>


    <div class="register-form">
    <?php
    if(isset($msg) & !empty($msg)){
    echo $msg;
    }
    ?>
    <h1>Forgot Password</h1>
    <form action="" method="POST">
    <p><label>User Name : </label>
    <input id="username" type="text" name="username" placeholder="username" /></p>

    <input class="btn register" type="submit" name="submit" value="Submit" />
    </form>
    </div>

    </body>
    </html>




    this is connect.php
    <?php
    $connection = mysql_connect('localhost', '819903', 'adnanno1','819903');
    if (!$connection){
    die("Database Connection Failed" . mysql_error());
    }
    $select_db = mysql_select_db('test');
    if (!$select_db){
    die("Database Selection Failed" . mysql_error());
    }

  • #15
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,286
    Thanks
    12
    Thanked 344 Times in 340 Posts
    how is that code related to your original question?


    PS. storing the users’ passwords in plain text is a HUGE security risk. normally you would just save the password’s hash and if a user has forgotten his password, you’d just create a new one for him that he can reset later.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer


  •  
    Page 1 of 4 123 ... LastLast

    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
    •