PHP Login & signup website with basic Security | MYSQL, CSRF tokens, prepared statements & more

PHP Login & signup website with basic Security | MYSQL, CSRF tokens, prepared statements & more

Quick Programming

3 года назад

46,742 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@error7715
@error7715 - 13.09.2023 14:48

Escape using htmlspecialchars in the values part.

Ответить
@abdomahmoud8769
@abdomahmoud8769 - 05.09.2023 18:20

When you host your website you can create a username and a password for the important directories so no one can access them without it

Ответить
@franklinodozie5329
@franklinodozie5329 - 15.08.2023 17:11

Please can i get the source code for this video ?

Ответить
@ganherngyih
@ganherngyih - 08.08.2023 06:12

the folder structure method work for WAMP? Doesnt seems to work for me

Ответить
@rajkunwar1454
@rajkunwar1454 - 05.08.2023 13:08

code link please.

Ответить
@2ncielkrommalzeme210
@2ncielkrommalzeme210 - 01.05.2023 17:51

Warning: require(../private/autoload.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\beginner\public\signup.php on line 2

Fatal error: Uncaught Error: Failed opening required '../private/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\beginner\public\signup.php:2 Stack trace: #0 {main} thrown in C:\xampp\htdocs\beginner\public\signup.php on line 2_______________ i get this info in my pc after create sing up page . why and how can i solve it is in my computer or in google they said composer.

Ответить
@user-dy5vm1sz4i
@user-dy5vm1sz4i - 14.04.2023 15:31

How do i encrypt the password. I tried it with sha256/sha512/md5. but it can't parse to the db. some help?

Ответить
@s.s.scriptties
@s.s.scriptties - 02.01.2023 17:57

Do I have to create the token as a column in the database?

Ответить
@EmmaMwesigye
@EmmaMwesigye - 31.12.2022 15:20

First of all i want to thank you for this informative and easy to follow tutorial. I am a beginner and was given an assignment by my superior to do a login page that would give access to our department help page so you can imagine what it felt stumbling on this.

But now am getting this error when I try to signup ( Fatal error: Uncaught mysqli_sql_exception: Unknown column 'user_name' in 'field list' in D:\Xamp\htdocs\mylogino\signup.php:21 Stack trace: #0 D:\Xamp\htdocs\mylogino\signup.php(21): mysqli_query(Object(mysqli), 'insert into use...') #1 {main} thrown in D:\Xamp\htdocs\mylogino\signup.php on line 21 )

and I get this one when I try to login ( Fatal error: Uncaught mysqli_sql_exception: Unknown column 'user_name' in 'where clause' in D:\Xamp\htdocs\mylogino\login.php:20 Stack trace: #0 D:\Xamp\htdocs\mylogino\login.php(20): mysqli_query(Object(mysqli), 'select * from u...') #1 {main} thrown in D:\Xamp\htdocs\mylogino\login.php on line 20).

Please help.

PS: I even copied and pasted your code from the google files but the error still came up
Thanks a lot again.

Ответить
@websoftwaredeveloperijtiha3093
@websoftwaredeveloperijtiha3093 - 11.12.2022 05:28

Cheer Up

Ответить
@laovoyage
@laovoyage - 01.10.2022 02:06

Thanks a lot !

Ответить
@smartambroseug69
@smartambroseug69 - 24.09.2022 20:01

very instrumental

Ответить
@laovoyage
@laovoyage - 31.08.2022 09:08

Thank you for sharing

Ответить
@laoadventuretour5012
@laoadventuretour5012 - 14.08.2022 20:51

Thanks for sharing the good video

Ответить
@pythonlife
@pythonlife - 10.08.2022 18:48

Thank you for all the lessons and courses, but the most important thing is the background music. Do not let me focus. Please do not use any background music. Thank you.

Ответить
@A_ALI24
@A_ALI24 - 13.07.2022 04:02

Thank you very much. I have learned a lot from your videos. It's good that you show different programming methods during the course, and indicate which one is the best. Keep up. All the best.

Ответить
@pedrobrandao6107
@pedrobrandao6107 - 05.07.2022 18:25

Excelent video. thanks a lot !!! I just add another topic that i think is very important to security: Hash the password using password_hash command. Thanks

Ответить
@naughtylewis
@naughtylewis - 27.06.2022 13:38

wow you are blessed my man good job

Ответить
@yash-fe2fe
@yash-fe2fe - 15.04.2022 21:12

can you please provide us the source code file?

Ответить
@musabyemungujanvier7259
@musabyemungujanvier7259 - 13.04.2022 10:13

Very good

Ответить
@Parken26
@Parken26 - 05.04.2022 22:53

$username on the signup page is breaking my try at replicating this, can anybody point me in the right direction?

Ответить
@nahomsintayehu3139
@nahomsintayehu3139 - 23.03.2022 08:42

Thankyou.please link the source code in description

Ответить
@navjotsinghDhanoa
@navjotsinghDhanoa - 25.02.2022 08:52

Learning php has become fun cos of your tutorials. Thanks a lot <3

Ответить
@secretmezzanine212
@secretmezzanine212 - 21.02.2022 05:18

These videos are awesome ! You are fun to listen to and explain things well. I really enjoy watching your videos - thanks for putting time into them.

Ответить
@harmonreiner7992
@harmonreiner7992 - 29.01.2022 20:17

<style> tags can be anywhere in the HTML Document. However, it is best to have it inside the <head>

Ответить
@friend8801
@friend8801 - 30.10.2021 14:43

please share the source code in description

Ответить
@kensyjolicoeur
@kensyjolicoeur - 28.10.2021 23:25

bro good Job, i really love PHP because of its simplicity, but when it comes to security 🥺🥺

Ответить
@kensyjolicoeur
@kensyjolicoeur - 28.10.2021 23:18

i am here for security

Ответить
@davidsulaberidze5978
@davidsulaberidze5978 - 27.10.2021 15:17

Thank you very much

Ответить
@quasarmaximus5662
@quasarmaximus5662 - 16.10.2021 03:22

Fantastic! Thank you! :^)

Ответить
@Cupid_Codes
@Cupid_Codes - 10.10.2021 06:19

I love your videos! As a self-taught software developer your videos have helped me so much. Keep the videos coming!

Ответить
@jennross1985
@jennross1985 - 07.10.2021 08:45

How do you connect the login to the index page or is this it? I also wanted to know how you would have login forms at the top of your page or directly connected to it.

Ответить
@jennross1985
@jennross1985 - 07.10.2021 08:43

You make it so easy to follow along and understand. I really appreciate your videos! They have helped me so much!

Ответить
@kos2222
@kos2222 - 19.09.2021 04:57

Do you know how to required the username and password to alphanumeric with minimum of 8 characters?

Ответить
@gufababa7504
@gufababa7504 - 11.09.2021 15:15

Share me your source code please

Ответить
@salluc1712
@salluc1712 - 07.09.2021 20:22

very good quality topics and video thank you man thats amazing;

Ответить
@valzzu
@valzzu - 30.08.2021 16:51

Nginx doesen't allow you to look into folders at default.

Ответить
@19Sjoerd93
@19Sjoerd93 - 23.08.2021 12:58

How do I add MD5 encryption to the passwords? You answered:

Simple
$hashed = md5($password);

But where in the code do I have to add this? I have tried many things but can't get it working... Hope you can help me out :)

Ответить
@19Sjoerd93
@19Sjoerd93 - 19.08.2021 07:37

How do I add MD5 encryption to the passwords? Now I can read alle the users passwords, i want to get them encrypted so I can not read the password anymore when I am accessing my database..

Ответить
@DoofGore
@DoofGore - 12.08.2021 21:27

Great work sir, Thank you so much.

Ответить
@kemikkenya9794
@kemikkenya9794 - 31.07.2021 16:07

share the source code kinfly

Ответить
@robertshirck1321
@robertshirck1321 - 20.07.2021 18:09

Thank you for your time and effort! For a 2-hour video, it took me much, much longer to imitate and get to work correctly. But I learned a lot...especially fixing my mistakes. Really enjoyed your presentation style. Made my day(s)!

Ответить
@AlmaMat3r
@AlmaMat3r - 10.07.2021 23:09

HI,
Great tutorial, thank you.
If you could give a hand I would appreciated, because I'm getting an error and I can't find where did I made the mistake...
The error is the following:
Parse error: syntax error, unexpected variable "$user_data" in C:\xampp\htdocs\login\public\index.php on line 5
And the code on this line is the following:
$user_data = check_login($connection);

I've already saw the video 3 times and I still don't know where to declare $user_data
Can you help, please?
Many thanks

Ответить
@jeff3916
@jeff3916 - 26.05.2021 21:07

Great tutorial! But I'm just wondering what was the $url_address for?

Ответить