Login and registration forms in PHP PDO and oops concepts | PDO Prepared statements

Поделиться
HTML-код
  • Опубликовано: 23 фев 2023
  • In this tutorial, we will create login and registration forms using PHP PDO and OOPS concepts. Sign-in and signup system in PDO and MYSQL database. We will use PHP PDO-prepared statements and object-oriented programming.
    Get the Best Hosting and domain from here -
    bluehost.sjv.io/hostingdomain
    This is complete login and registration system using a PHP data object (PDO).
    Part 2 -
    • Registration and login...
    Source code for this tutorial
    technosmarter.com/php/login-a...
    As you know about SQL Injection. We will secure it from SQL injection. We will use the bootstrap framework to make responsive forms. Bootstrap is used to create responsive login and registration forms. The full form of OOPS is the Object-oriented programming system.
    How to create a registration form in PDO and OOPS -
    The registration form is used to take data from the users. We create a registration form by following the steps -
    1. Create a connection file and create a PDO connection object.
    2. Create a autoload file using the spl_autoload_register() function. You will not need to require or include any classes. Autoload will call classes automatically when they call.
    3. Create two classes. One abstract class and a second user class.
    4. Create a database table for the registration form (Signup form ).
    2. Make an HTML form with many fields and one form submit button.
    3. Design registration forms with bootstrap classes.
    4. Create PHP scripts for the registration form
    5. Create a function for validate all values .
    6. Insert data into the database by creating a register() function in user class.
    Inserting data into a database is known as a registration process or signup process.
    How to create login form in PHP PDO and object oriented programming -
    After the signup(registration) process, we create a login form to authenticate user information in PHP.
    1. We have already created users table.
    2. Make an HTML form for login with username, email, and password field
    3. Write PHP code in same file or other file.
    4.Create a login() function un user class.
    5. User session and restrict pages from unknown users.
    How to create login and registration forms using PHP PDO prepared statement , MYSQL , bootstrap and OOPS concepts.
    In this video tutorial, we will create login and registration after designing with bootstrap.
    This PHP tutorial is in the Hindi language. This is part of PHP in Hindi tutorials. We will be explained in the Hindi language with source codes.
    Create registration and login forms in PDO and OOPS concepts-
    Website
    technosmarter.com
    For any question , use our Techno Smarter QA platform.
    Ask a Question
    technosmarter.com/qa
    or other videos by Techno Smarter...Subscribe below links!!
    Facebook
    / technosmarter
    Instagram
    / technosmarter
    Twitter
    / technosmarter
    RUclips Channel
    / technosmarter
    #technosmarter #registration #login #phptutorials #phpinhindi #phphindi #php_in_hindi #phptutorials #phpmysql #php_mysql #php_hindi #bootstrap #bootstrap_responsive #login_form_in_PHP #registration_form_in_php #signin_in_php #login_in_php #pdo #oops #login_in_oops #registration_in_pdo #signin_in_pdo_oops #signup_in_pdo_and_oops
    Reference -
    Login and registration forms in PHP PDO and oops
  • НаукаНаука

Комментарии • 7

  • @mrchaitu7
    @mrchaitu7 Год назад +2

    on connecting database i am getting this error
    Issue -> Connection faled: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
    please please please please please please reply me

    • @TechnoSmarter
      @TechnoSmarter  Год назад

      Try this:
      Open config.inc.php file in the phpmyadmin directory
      Find line 21: $cfg['Servers'][$i]['password'] = '';
      Change it to: $cfg['Servers'][$i]['password'] = 'your_password';
      Restart XAMPP

    • @mrchaitu7
      @mrchaitu7 Год назад

      ​@@TechnoSmarter not solved

    • @TechnoSmarter
      @TechnoSmarter  Год назад

      Maybe you are using oldest version of xampp.
      Download latest version from here
      www.apachefriends.org/download.html

    • @mrchaitu7
      @mrchaitu7 Год назад

      @@TechnoSmarter not working

    • @mrchaitu7
      @mrchaitu7 Год назад

      I think the problem from user accounts