PHP Login System with Admin Features

Would you like to react to this message? Create an account in a few clicks or log in to continue.
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


+4
meadsy25
mattastic
mr_roo
Fred-Eric
8 posters

    Adding new fields Part 1

    Linchpin311
    Linchpin311


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

    Adding new fields Part 1 - Page 2 Empty Re: Adding new fields Part 1

    Post  Linchpin311 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?
    meadsy25
    meadsy25


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

    Adding new fields Part 1 - Page 2 Empty Re: Adding new fields Part 1

    Post  meadsy25 Wed Sep 21, 2011 3:03 pm

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

    Linchpin311
    Linchpin311


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

    Adding new fields Part 1 - Page 2 Empty Re: Adding new fields Part 1

    Post  Linchpin311 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']);
    Siggles
    Siggles


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

    Adding new fields Part 1 - Page 2 Empty Re: Adding new fields Part 1

    Post  Siggles 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']);
    meadsy25
    meadsy25


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

    Adding new fields Part 1 - Page 2 Empty Re: Adding new fields Part 1

    Post  meadsy25 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


    Adding new fields Part 1 - Page 2 Empty Re: Adding new fields Part 1

    Post  Sponsored content


      Current date/time is Fri May 17, 2024 8:02 am