PHP Login System with Admin Features

This forum was created to talk about the PHP Login System with admin features created by jpmaster77 on evolt's website


    Adding new fields Part 1

    Share
    avatar
    Linchpin311

    Number of posts : 220
    Age : 32
    Localisation : Long Island
    Registration date : 2007-05-14

    Re: Adding new fields Part 1

    Post  Linchpin311 on Wed Sep 21, 2011 3:03 pm

    when you attempt to register does it look like you have successfully registered (until you look at your database) or is the login script or php bouncing back any errors at you?


    _________________
    in the end, the universe tends to unfold as it should...

    Also note that it is your responsibility to die() if necessary.
    avatar
    meadsy25

    Number of posts : 13
    Registration date : 2011-08-22

    Re: Adding new fields Part 1

    Post  meadsy25 on Wed Sep 21, 2011 3:03 pm

    It's all successful until I look at the database.

    avatar
    Linchpin311

    Number of posts : 220
    Age : 32
    Localisation : Long Island
    Registration date : 2007-05-14

    Re: Adding new fields Part 1

    Post  Linchpin311 on Wed Sep 21, 2011 3:19 pm

    i havent gone through all your code yet, but lets start by checking out process.php line 104

    Code:
    $retval = $session->register($_POST['user'], $_POST['pass'], $_POST['email'], $_POST['ac_f_name'], $_POST['$ac_l_name'], $_POST['$ac_add1'], $_POST['$ac_add2'], $_POST['$ac_city'], $_POST['$ac_county'], $_POST['$ac_country'], $_POST['$ac_postcode'], $_POST['$ac_phone'], $_POST['$ac_mobile'], $_POST['$ac_mail']);

    the POST values for user, pass, email, and ac_f_name looks good, but after that you add a $ to the beginning of every POST value so the script is looking for a value that doesnt exist. try changing that line to:

    Code:
    $retval = $session->register($_POST['user'], $_POST['pass'], $_POST['email'], $_POST['ac_f_name'], $_POST['ac_l_name'], $_POST['ac_add1'], $_POST['ac_add2'], $_POST['ac_city'], $_POST['ac_county'], $_POST['ac_country'], $_POST['ac_postcode'], $_POST['ac_phone'], $_POST['ac_mobile'], $_POST['ac_mail']);


    _________________
    in the end, the universe tends to unfold as it should...

    Also note that it is your responsibility to die() if necessary.
    avatar
    Siggles

    Number of posts : 11
    Registration date : 2011-09-03

    Re: Adding new fields Part 1

    Post  Siggles on Wed Sep 21, 2011 3:51 pm

    Ahh you git, you beat me to it, lol!! tongue
    Linchpin311 wrote:i havent gone through all your code yet, but lets start by checking out process.php line 104

    Code:
    $retval = $session->register($_POST['user'], $_POST['pass'], $_POST['email'], $_POST['ac_f_name'], $_POST['$ac_l_name'], $_POST['$ac_add1'], $_POST['$ac_add2'], $_POST['$ac_city'], $_POST['$ac_county'], $_POST['$ac_country'], $_POST['$ac_postcode'], $_POST['$ac_phone'], $_POST['$ac_mobile'], $_POST['$ac_mail']);

    the POST values for user, pass, email, and ac_f_name looks good, but after that you add a $ to the beginning of every POST value so the script is looking for a value that doesnt exist. try changing that line to:

    Code:
    $retval = $session->register($_POST['user'], $_POST['pass'], $_POST['email'], $_POST['ac_f_name'], $_POST['ac_l_name'], $_POST['ac_add1'], $_POST['ac_add2'], $_POST['ac_city'], $_POST['ac_county'], $_POST['ac_country'], $_POST['ac_postcode'], $_POST['ac_phone'], $_POST['ac_mobile'], $_POST['ac_mail']);
    avatar
    meadsy25

    Number of posts : 13
    Registration date : 2011-08-22

    Re: Adding new fields Part 1

    Post  meadsy25 on Wed Sep 21, 2011 4:02 pm

    Stunning. Sorted.

    So simple but couldn't see it for the trees.

    Thank you both for helping. I was going mad.

    Sponsored content

    Re: Adding new fields Part 1

    Post  Sponsored content


      Current date/time is Mon Nov 20, 2017 9:36 am