Merci beaucoup, je suis débutante en Javascript et j'avais beaucoup de mal à trouver un cours facile à suivre. Votre cours est très bien fait car on comprend toutes les étapes, j'ai beaucoup appris ! Et votre anglais est très compréhensible quand on n'est pas vraiment bilingue!
It's my first time finishing a project in php successfully. Thank you so much. I had to change this //header(string: 'Location: hidden.php'); to this header('Location: hidden.php'); and this //$connection = new mysqli(host: 'localhost', username: 'root', passwd: '', dbname: 'loginTutorial'); to this $connection = new mysqli('localhost', 'root', '', 'loginTutorial'); Not sure exactly why. Somebody else in the comment section had modified it in their own code so I just copied and it worked.
Glad you made it. Well, those "host:, username: dbname:, string:" etc. you don't need in the code, those "tags" are added by PHPStorm so I can easier know which parameter I should send, but basically that doesn't exists in my code.
Thank you for this amazing tutorial. like others said, this is high level education that rarely can be found. Thank you so much man! Will be following you from now on :)
Wow, you are a rare find. I can't thank you enough for this tutorial. The detailed explanation leaves all the others behind. I seriously wasn't expecting such a high standard of education. I rate this stuff at the university level. I have bought courses online and they come nowhere near this tutorial, period. The detail is just amazing, to be honest from my experience. What's even more amazing is your giving away this knowledge FREE! I felt that I needed to appreciate your efforts here. Thanks, man!
E mogao bi da objasnis OOP na svom kanalu, za sta se tacno koristi protected i private mislim na primere u produkciji sto se stavlja statik i koji je benefit toga, sto se koristi __construct i sto se koriste apstraktne klase i __autoload to nema nigde lepo obajsnjeno samo najprostiji primeri a sustina i prava korisnost toga nigde svi pricaju ono sto mozes da nadjes bilo gde
Igor Mikša Hvala druze na ideji. Trenutno sam baziran na osnove web development-a, ali cu poslije imati tutoriale vezane za OOP, razlicite framework-e itd., tako da kada na taj dio predjem, detaljno cu obraditi sve sto si pitao (zapisao sam :)).
Thank you soo much, thank you soo much, thank you soo much. I got stack on how I can make my modal stay unsubmitted while validation is done and I have just found a solution right here. Thank you once more.
muy buen tutorial como todos los que tienes, en este caso seria bueno explicar como tener multiples niveles de usuario y ver solo algunas cosas según sus características saludos y gracias
This is a great tutorial and helped a lot. If I wanted to migrate this to a constrained device which doesn't have PHP available and may have to use a fake filesystem, is there an alternative to php/mysql that you would recommend? Thanks!
First of all i would like to thank you for the awesome & usefull tutorials... Indeed, i'd really like to know how to get a redirection back to the same page you were at with a certain id or name after you logged out & you logged in again. For example if i was in page called profile.php?id=1 then i logged out After that i logged in again how can get redirected back to the last page i was at before i logged out, And Thank you.
how did you achieve it? The first thing that comes to my mind is to save the page (name) the person is currently in . When logged out, the last current will be stored and used again upon login. Is there another way?
strictly for security reasons, can someone see the php code in the debugger. for instance if someone right click and click inspect element, would someone be able to see the php code?
Kisa Käse Which part do you want to move? If you want to move the part thay handle ajax requests, than all you need to do is to copy/paste to new file and change the url of ajax request to that file.
Hello Sir Thanks a lot for this tutorial. It is helpful and very easy to learn as you.d said. But i need a suggestion on a login with three user tables.Like I wanted to login as teacher,student and admin. Ive created three tables but unable to create a logic on this.Can you help me on this
Why three different tables? You can have one "users" table, and in that table have one column that will be "role". So, on a login page, you will just check the value of that "role" column, store it in the $_SESSION and later just based on that value show different content.
Loved this tutorial, wanted to know for so long how they did the validation without refreshing the page!!, So we could make it update even without pushing the button but just by $('input#email').bind('input propertychange', function() in case of a registration it could be very interesting to see if a certain username is already taken or not, if my practice seems not correct on the live update when typing, pls share you're thoughts
Thank you! Your practice will be correct if you're using it on the registration form, so you want to check if a username is available or not. However, using it on the login page is not the best, because on that way you're making one security mistake. The security mistake is that an attacker will be able to brute force your username until he finds the correct one. Also, once he knows the username, he can try to execute brute force attack for password too. BTW, if you want to learn a lot more about form validation by using jQuery, then you should check ua-cam.com/video/tGTGYSljQG4/v-deo.html
Ty so much for you're reply ,.. I have implemented it now only on the registration part of my website, as it doesn't check the database against passwords but only usernames and emails, I don't think it's considered as a security breach ? Ty for the link I'll go check it right away!
You should be fine with that approach because many times attackers will go directly to the login page and won't try to find a username through the registration page. :)
how can i get user information like his name and phone number when he log in ? i want when i log in index file open and then i find my name that was stored in database is there and my profile you know how to do this ?
hi, I have tried this code following everything but apparently its not working. I checked all codes carefully and im sure that everything is correct as per your tutorial but still nothing happens when I click the button. I'm not sure what is the problem. Is there anything I miss here? thanks
I love your tutorials, and thank you so much for creating them! But I'd strongly suggest that you remove the sudden "Subscribe" and "Like?" prompts. In my opinion at least, they are startling, jarring, and cheapen what are otherwise very high-quality tutorials. It would be sufficient to simply say at the beginning and/or end of each video, "If you liked this tutorial, please don't forget to like and subscribe."
Dear Senaid, I liked your first tutorial and I want to go through with this as well but the code that you are giving is not the same that you are doing. Many people have different background and sample code always good and help. I followed your complete video and created the code into 6 different parts. Whenever you test anything, I made the version. So, if anyone want to see the full complete version than open the folder Jquery6 and if you want to start from the beginning than open the folder Jquery1. Again I just want to help others are you are doing. Keep up the great work and here is the link of the sample code. www.dropbox.com/sh/angmb434d56wior/AAC63J8mlNLxh0zb1gHlFfrIa?dl=0
Recoverable fatal error: Object of class mysqli could not be converted to string in G:\xamp\htdocs\PHPDatabaseExample\login.php on line 26 getting this error
Pretty odd, my PHP will not work. The "exit" commands don't output anything. Not even a simple echo statement works.. The ajax seems to work this is what I see in the Headers: "Request URL: localhost/learn/ajax/login.php?login=1&emailPHP=asdaf&passwordPHP=dgsdga Request Method: GET Status Code: 200 OK Remote Address: [::1]:80 Referrer Policy: strict-origin-when-cross-origin" However my response is not like yours, its the entire html document without the PHP. My code is identical to yours so it may be a 'wiring' kind of problem. Im using XAMP and have the files in the htdocs folder.
please help @senaid these are snippets of my code from login.php ..... $data = $connection->query("SELECT id FROM login_table WHERE email = $email AND password = $password "); if($data->num_rows >0){ exit('success');} else exit('failed'); ......... and i get " Notice: Trying to get property of non-object in C:\xampp\htdocs\socialConnect2\login1.php on line 15 failed " in the console please help me out figure out the problem
mister i have problem in html i put this in js i put this $(function() { $('#login').ajaxForm({ url: 'login.php',}, success: function(data) { the question is are the data will posting to login page annd how i can reciver it please help me
At first I like your thank you, the explanation is wonderful And excuse me for my language I am from Syria no i not tried the same code in this video but you almost lonly talk about jquery form library my question is i put in html : ...... and in is page i use: $(function() { $('#login').ajaxForm({ url: 'login.php', success: function(data) { if (data.status == 200 || data.status == 600) { window.location.href = data.location; } }); $('#login input').on('click', function(e) { $state.html(login_button_text); }); }); ............ in login.php page i put But it does not work, is it true Thanks for your help
Hello sir , i think you have not used ajax properly, if you are using ajax ...then why are you writing action =".... "& method="..." in form tag , this is a procedure of pure php . kindly correct me or correct it .
YOU ARE THE ONLY ONE WHO EXPLAIN THE CONCEPT!!!!!! Savior
Thank you so much! :)
Merci beaucoup, je suis débutante en Javascript et j'avais beaucoup de mal à trouver un cours facile à suivre. Votre cours est très bien fait car on comprend toutes les étapes, j'ai beaucoup appris ! Et votre anglais est très compréhensible quand on n'est pas vraiment bilingue!
It's my first time finishing a project in php successfully. Thank you so much.
I had to change this
//header(string: 'Location: hidden.php');
to this
header('Location: hidden.php');
and this
//$connection = new mysqli(host: 'localhost', username: 'root', passwd: '', dbname: 'loginTutorial');
to this
$connection = new mysqli('localhost', 'root', '', 'loginTutorial');
Not sure exactly why.
Somebody else in the comment section had modified it in their own code so I just copied and it worked.
Glad you made it. Well, those "host:, username: dbname:, string:" etc. you don't need in the code, those "tags" are added by PHPStorm so I can easier know which parameter I should send, but basically that doesn't exists in my code.
thank god, i found someone who explained this concept. Big thumbs up to you
I've never ever regretted subscribing to your channel ..you're the best...
Wow, thank you!
This is one of the best tuts i've ever watched. simple, direct, and well explained. what more could you ask for?
Thank you so much! I never knew where to start and how exactly each language played a part in web development, now I do :)
My pleasure, thank you!
You are the best man! Thank you!
You're welcome!
As a new PHP web developer, this is just what I'm searching for. Soon, I hope, will be more PHP stuff!
Awesome, glad I could help! Yes, there will be, for sure.
In the name of all the students who want to start a career like you --- THANK YOU !
Ohh, thank you so much!
Thank you for this amazing tutorial. like others said, this is high level education that rarely can be found. Thank you so much man! Will be following you from now on :)
Appreciate that! New videos coming soon! :D
Excellent job. Best login demo I've seen so far.
gpicard1 thank you :)
Wow, you are a rare find. I can't thank you enough for this tutorial. The detailed explanation leaves all the others behind. I seriously wasn't expecting such a high standard of education. I rate this stuff at the university level. I have bought courses online and they come nowhere near this tutorial, period. The detail is just amazing, to be honest from my experience. What's even more amazing is your giving away this knowledge FREE! I felt that I needed to appreciate your efforts here. Thanks, man!
BIG words, thank you so much!
keep it up man
i like the way you explain , so clear and slow
thank you
ELASRI Mohamed Thank you! :)
Thanks man for good explanations . You are a real savior .
Glad I could help :)
Amazing! Just amazing! By far the best demonstration of this on the web! Thank you very much.
thank you :)
it's amazing, thank you so much. I have cleared my problem.
Glad it helped!
Spot on with this tutorial! Much better than many paid JQuery courses 😂
Great to hear!
Thank you so much...I really understood ....this really helped me a lot
This is Gold.
Thanks Senaid...This video really helped answer some questions i had about JQuery and AJAX.
Big Ups Senaid
Bravo svaka cast. Ovo je bas od pomoci.
Hvala puno!
Thanks & Respect from India
Tut on point love the simplicity of everything brought to the table
your way is the best bro salutations from Algeria
thank you :)
Very good tutorial. Please do some more e.g. about API + AJAX
Will do!
Very nicely explained and shown.... Thanks a lot ...
thank you :)
MAAAAAAN AWESOME CLASS TODAY!!!!!!!!
Thank You so much for this. My problem before now was how to redirect to home page after successful login using jquery. Thanks again.
Really cool video
Thank you :)
Maravilloso, muy bien explicado...Gracias!!
gracias :)
Thank you! you help a lot with this video tutorial!
You're welcome!
its amazing for me ! really only you are explain very deeply... i love it. thank you !!!
Great code structure, thank you sir.
you are awesome man. I will suggest my friends to watch your video.
Very well explained.
Thanks a lot.
My pleasure, thank you!
Hvala ti puno! Pozdrav iz Ukrajine!
thanks for the tutorial, it help alot....my assignment was giving me headache but you cool it
Glad it helped!
THANK YOU SOOO MCUH!!!! YOU HELPED ME SOLVE MY PROBLEM!!!! THANK YOU THANK YOU!!!!!
thank you so much sir !! Advance Merry Christmas ...
Gracias amigo
It's truly awsm video
Thank you :)
thank you so much bro... for your detailed explanation :)
thank you :)
Fra il migliore
Veramente il più potente degli esseri
Bravo buraz, jos malo engleski da ide tecnije al sve lepo polako, dopada mi se, GOOD JOB
Hvala druže na podršci! Bit će i engleski još bolji. :)
E mogao bi da objasnis OOP na svom kanalu, za sta se tacno koristi protected i private mislim na primere u produkciji sto se stavlja statik i koji je benefit toga, sto se koristi __construct i sto se koriste apstraktne klase i __autoload to nema nigde lepo obajsnjeno samo najprostiji primeri a sustina i prava korisnost toga nigde svi pricaju ono sto mozes da nadjes bilo gde
Igor Mikša Hvala druze na ideji. Trenutno sam baziran na osnove web development-a, ali cu poslije imati tutoriale vezane za OOP, razlicite framework-e itd., tako da kada na taj dio predjem, detaljno cu obraditi sve sto si pitao (zapisao sam :)).
Excellent tutorial, thank you for this!
Wonderful explanation bro keep it up. You have wonderful explanation skills.
thank you :)
no wonder you didn't bother about your coding skills rather than explanation!! xD
@@sammitneupane8486 hmmm?
thanks man
My pleasure!
thanks for your effort it will help a lot!
my pleasure!
Thanks
Nice tutorial THANK YOU SIR!
thank you :)
Thank you dear sir i have learn this login form if you have don't issue so please sir make the full course of ajax tutorial
Dude thank you for such a useful tutorial! Where have you gone?
Just smashed out with everything going on in my software company & web development agency. Thank you for asking.
Thank you so much!
Superb.....sir
Extremely Good 🤘😎😎
very useful video please make video on how add payment gateway in PHP and how to make chating in PHP .
Thank you. Please check this for payment gateway:
ua-cam.com/video/KlcqEVAO8y4/v-deo.html
Thank you soo much, thank you soo much, thank you soo much. I got stack on how I can make my modal stay unsubmitted while validation is done and I have just found a solution right here. Thank you once more.
My pleasure!
Thanku sir Alot very easy and clear tutorial 👏👏👏👏👏
Glad I could help :)
Thank you sir
THANKS!
Truly , THANK you!!
good tutorial
just one question for the sign up form the only thing that changes is the query with INSERT instead of SELECT?
Thank you in advance
Really super
Hi very nice explanation.. I am getting two additional curly brackets along the actual response.. what can be the possible reason?
muy buen tutorial como todos los que tienes, en este caso seria bueno explicar como tener multiples niveles de usuario y ver solo algunas cosas según sus características saludos y gracias
My goto Place for learning
Thank you!
nice tutorial
thank you :)
Thanks a lot! :D
thank you :)
This helps a LOT !!!!!!! Thank You!!!!!!!
Awesome, glad I could help. :)
This is a great tutorial and helped a lot. If I wanted to migrate this to a constrained device which doesn't have PHP available and may have to use a fake filesystem, is there an alternative to php/mysql that you would recommend? Thanks!
there is no source code in that link...you given
excellent
Thank you :)
First of all i would like to thank you for the awesome & usefull tutorials...
Indeed, i'd really like to know how to get a redirection back to the same page you were at with a certain id or name after you logged out & you logged in again.
For example if i was in page called profile.php?id=1 then i logged out
After that i logged in again how can get redirected back to the last page i was at before i logged out,
And Thank you.
how did you achieve it? The first thing that comes to my mind is to save the page (name) the person is currently in . When logged out, the last current will be stored and used again upon login. Is there another way?
Blessed
strictly for security reasons, can someone see the php code in the debugger. for instance if someone right click and click inspect element, would someone be able to see the php code?
adam hardy No, that is not possible because PHP is server-side language. If it is possible, then there wouldn't be any website that is secure.
Is it possible to outsource the php code in a separate file? And if so, what kind of adjustments I'd have to make?
Kisa Käse Which part do you want to move? If you want to move the part thay handle ajax requests, than all you need to do is to copy/paste to new file and change the url of ajax request to that file.
Hello Sir Thanks a lot for this tutorial. It is helpful and very easy to learn as you.d said. But i need a suggestion on a login with three user tables.Like I wanted to login as teacher,student and admin. Ive created three tables but unable to create a logic on this.Can you help me on this
Why three different tables? You can have one "users" table, and in that table have one column that will be "role". So, on a login page, you will just check the value of that "role" column, store it in the $_SESSION and later just based on that value show different content.
Loved this tutorial, wanted to know for so long how they did the validation without refreshing the page!!,
So we could make it update even without pushing the button but just by $('input#email').bind('input propertychange', function() in case of a registration it could be very interesting to see if a certain username is already taken or not, if my practice seems not correct on the live update when typing, pls share you're thoughts
Thank you! Your practice will be correct if you're using it on the registration form, so you want to check if a username is available or not.
However, using it on the login page is not the best, because on that way you're making one security mistake. The security mistake is that an attacker will be able to brute force your username until he finds the correct one. Also, once he knows the username, he can try to execute brute force attack for password too.
BTW, if you want to learn a lot more about form validation by using jQuery, then you should check ua-cam.com/video/tGTGYSljQG4/v-deo.html
Ty so much for you're reply ,.. I have implemented it now only on the registration part of my website, as it doesn't check the database against passwords but only usernames and emails, I don't think it's considered as a security breach ?
Ty for the link I'll go check it right away!
You should be fine with that approach because many times attackers will go directly to the login page and won't try to find a username through the registration page. :)
Is using jquery ajax in passing parameters secure?
Please do you have a full tutorial for registration form? Ajax php mysql, I'm having hard time
the lonk to the code is wrong . it leads up to a file with out any script js
but still good job
hello i have an issue LIKE:- facebook Exception:- Cross-site request forgery validation failed. Required param "state" missing from persistent data.
Nice video, btw, Have you seen Thor Ragnarok?
Thank you. I haven't, why? :)
how can i get user information like his name and phone number when he log in ? i want when i log in index file open and then i find my name that was stored in database is there and my profile you know how to do this ?
hi, I have tried this code following everything but apparently its not working. I checked all codes carefully and im sure that everything is correct as per your tutorial but still nothing happens when I click the button. I'm not sure what is the problem. Is there anything I miss here? thanks
I love your tutorials, and thank you so much for creating them! But I'd strongly suggest that you remove the sudden "Subscribe" and "Like?" prompts. In my opinion at least, they are startling, jarring, and cheapen what are otherwise very high-quality tutorials. It would be sufficient to simply say at the beginning and/or end of each video, "If you liked this tutorial, please don't forget to like and subscribe."
Dear Senaid, I liked your first tutorial and I want to go through with this as well but the code that you are giving is not the same that you are doing. Many people have different background and sample code always good and help. I followed your complete video and created the code into 6 different parts. Whenever you test anything, I made the version. So, if anyone want to see the full complete version than open the folder Jquery6 and if you want to start from the beginning than open the folder Jquery1. Again I just want to help others are you are doing. Keep up the great work and here is the link of the sample code. www.dropbox.com/sh/angmb434d56wior/AAC63J8mlNLxh0zb1gHlFfrIa?dl=0
You're amazing, thank you!
Recoverable fatal error: Object of class mysqli could not be converted to string in G:\xamp\htdocs\PHPDatabaseExample\login.php on line 26 getting this error
Do you have to have ajax?
Hi
Is ajax call possible in file permissions (if I give permissions to own and group,not to world)?
I have tried but not working until I give permissions to world
Pretty odd, my PHP will not work. The "exit" commands don't output anything. Not even a simple echo statement works.. The ajax seems to work this is what I see in the Headers:
"Request URL: localhost/learn/ajax/login.php?login=1&emailPHP=asdaf&passwordPHP=dgsdga
Request Method: GET
Status Code: 200 OK
Remote Address: [::1]:80
Referrer Policy: strict-origin-when-cross-origin"
However my response is not like yours, its the entire html document without the PHP. My code is identical to yours so it may be a 'wiring' kind of problem. Im using XAMP and have the files in the htdocs folder.
Sir when you creating WhatsApp clone using ajax php jquery etc ? Just chatting not whole app
I will write it in my notes, that's all I can promise.
That's great. ... only chat system nog whole app sir oksy thanks I can do is waiiiiit. ....
Can you help me? ajax is not reaching PHP
how to perform form action without using form action tag. please tell me?
You can use the same code from this tutorial, remove the form tag and everything will work without any problem. :)
Sir, make a tutorial for convert application form to PDF online & send with email...please help me sir
please help @senaid
these are snippets of my code from login.php
.....
$data = $connection->query("SELECT id FROM login_table WHERE email = $email AND password = $password ");
if($data->num_rows >0){
exit('success');}
else
exit('failed');
.........
and i get
" Notice: Trying to get property of non-object in C:\xampp\htdocs\socialConnect2\login1.php on line 15
failed "
in the console please help me out figure out the problem
Have you initialized $connection variable?
thanks bro for replying , i was getting errors because i had't put quotes around $email and $password
so my query never succeded hence $data was never a object hence the error
mister i have problem in html i put this
in js i put this
$(function() {
$('#login').ajaxForm({
url: 'login.php',},
success: function(data) {
the question is are the data will posting to login page annd how i can reciver it please help me
coding passive income
Have you tried to code from this video tutorial?
At first I like your thank you, the explanation is wonderful
And excuse me for my language I am from Syria
no i not tried the same code in this video but you almost lonly talk about jquery form library
my question is
i put in html :
......
and in is page i use:
$(function() {
$('#login').ajaxForm({
url: 'login.php',
success: function(data) {
if (data.status == 200 || data.status == 600) {
window.location.href = data.location;
}
});
$('#login input').on('click', function(e) {
$state.html(login_button_text);
});
});
............
in login.php page i put
But it does not work, is it true
Thanks for your help
i have i problem when i entered the correct email and password its not display the success message since i am using your procedure
Can you show me the code?
Hello sir , i think you have not used ajax properly, if you are using ajax ...then why are you writing action =".... "& method="..." in form tag , this is a procedure of pure php . kindly correct me or correct it .