The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PDO statements – Registration page

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #198338

    I have been trying to figure out how to create a function registration and login page for some time now and am always stuck at this one part. I am following a tutorial by WebDevelopingCat here. ALthough its a nice tutorial it is very unclear to where I should be putting some of this code that he provides. I am currently stuck at the code:

    $form = $_POST;
    $username = $form[ 'username' ];
    $password = $form[ 'password' ];
    $first_name = $form[ 'first_name' ];
    $surname = $form[ 'surname' ];
    $address = $form[ 'address' ];
    $email = $form[ 'email' ];

    You can view the entire code of my registration.php here.

    Once I use this code that he provides I get many errors in my localhost page that is displayed here. Hope that there is someone that can help/guide me through this a little more then the tutorial does.


    I am no longer having the error that is displayed in the screenshot BUT I did encounter another problem when finished with the code. When I register and submit it does not display any users in the phpmyadmin database no matter how many times I try it. I have updated the code on the pastebin here.


    Again researched a little more and got the answer to my own question, ignore this post please.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.