search

Home  >  Q&A  >  body text

The login password matches the last six digits of the student number

I am building a system for college attendance. I want the password to match the last six digits of my student ID when logging in. How do I do this? Do you manually enter the data into the table? Is there any code to implement it? The great master will guide you on the recommended learning content. I am a student, but my knowledge is still shallow. Hope God can give me some advice


默年默年1743 days ago1160

reply all(2)I'll reply

  • 城乡结合部部长

    城乡结合部部长2020-02-19 12:42:28

    After getting the password from $_POST, make a judgment and compare it with the last six digits of the student ID to see if it is equal. The last six digits of the student number can be obtained using the substr function.

    reply
    0
  • 排骨

    排骨2020-02-18 08:57:03

    You can take a look at the substr function

    reply
    0
  • Cancelreply