login signup page with php mysql api

Similar Posts

77 Comments

  1. Hi Shekryar,

    Great post and great code organization.
    How would you integrate the reply of your api on the html signup/login page in order to get the reply message (a field validation error/ success on the signup/..) without getting redirected to other page?
    How would you print the JSON reply on the signup/login form?

    Thanks,
    Maria

    1. Hi,
      You need to use Ajax Call for getting API response without reloading the page.
      Don’t forget to change your input type from submit to button & remove form tag.
      I tried to paste the code here but it doesn’t show the code.
      so comment if you face any difficulty.

    1. Yes here’s the sql script
      CREATE TABLE `users` (
      `id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
      `username` varchar(255) NOT NULL,
      `password` varchar(255) NOT NULL,
      `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
      )

  2. Hi Sir,

    I was wondering if you could assist me with integrating an API with my database. You see, I’m creating a travel itinerary management system for my final year computer engineering design project and I have no clue how to integrate the API with my database in order to obtain real-time data

Comments are closed.