This tutorial would be bees knees if this was part 1. Then part 2 stated everything that wasn't best practice in this video. Then part 3-5 was you breaking all this out into classes and doing it the right way. I am new to php and I watched this video for the HTML and CSS, also thank for showing me how to get the POST variables. Super helpful.
for people having the issue of not being able to display the success msg, the welcome + user's name msg or the picture on welcome.php try this: replace these lines: by these lines: or "prior to PHP 5.4 requires short tags be enabled in your php configuration" etc... stackoverflow.com/questions/2150238/php-variable-in-html-no-other-way-then-php-echo-var stackoverflow.com/questions/2185320/how-to-enable-php-short-tags
Hi Clever...Thanks! This is really well structured and I will give myself good minutes to dive into all these vids...but also try to apply the coding (ideas) to my projects (PHP, MySql etc...)
hi there, very nice and straight to the point video thanks for that. I have noticed on this video one fundamental validation missing. Duplicate entry checking i.e if the username already exist in the database then what happens? At current state of your code, you could have multiple accounts with same username, password, email and avatar and only differentiated by the primary key in the database.
Hey clevertechie , i don't want to be rude but i guess you don't buy a microwave with only refroze option right ? could you do a video with functions ( check if already registered) and on login (login only when the user is registered ) ? cause i really cant find my way on fully functional Registration/ Login form . You got us covered with Avatars here so in exception could you make all the PHP for Reg / Log in different file so other files can just include ' file.php ' ?
nice tuto. I yet think that verifying the content of variable would be nice to add as a step, as only relying on html5 you give a chance to the user to edit so verfications are better on server side. otherwise, cool tuto. I liked it.
Really awesome tutorial! I checked out your channel but I couldn't find any video about AJAX, more specifically a way to show data from a PHP without including the PHP code in the file. Are you planing on making a tutorial for that?
Good tutorial for beginners but lucks important programming practices like prepared statements and bound parameters. Ah not to mention Post/redirect/get design pattern. Not bad but good for start.
Thanks great Tutorial. Hopefully you continue this php tutorial series. Especially security is interesting. One question. It seems that my browser never shows the picture like he's blocking it. Any ideas? Thanks
Another great tutorial :) Could you share the mysql queries you used along with the php code? (I found the html css on codepen). Also, I wish you also made a tutorial on login logout functionality while also explaining how does sessions exactly work how they keep the user logged in. I know there are tons of tutorials but I've benefited most from your videos.
Everything is working atm except for the notifications, for example when I'm on my profile page and go back to login page it is showing me this error --> Notice: Undefined variable: _SESSION in C:\xampp\htdocs\sign.php on line 43
Excuse me, I am lost at the part where you do the line mysql = new mysql('localhost', 'root,' 'mypass123') like how did you get all those variables? Am I supposed to type the exact same thing as you do? If not then where do I get the information to properly input the fields?
@@clevertechie Also I know this is 4 year ago, but I watched your video back in freshman year, just thinking of switching my major to CS. I didn't even know how to put together a nested for loop. Just wanting to come back and said I'm graduating this year with a CS degree and had done an internship at Google. You're awesome dude! Keep making videos like this.
How do you get to work with MySQL although the newest version of XAMPP supports MariaDB? Are you using an older version of XAMPP? Don't you run into security issues if so?
Hello Clever Techie,I got an error on line 25 stating that, Fatal error: Uncaught Error: Call to a member function real_escape_string() on null in C:\wamp64\www\UserRegistration\form.php on line 24 ??? ,please help me .
Saved my fucking ass for an assignment. Thank you so much! Took me a while to get everything working, but it was straight forward and simple. You're a legend!
when i fill in the form and press register it says this: This page does not work localhost can not process this request at this time. HTTP ERROR 500. and it doesn't go into my database. does anyone know a fix?
You should not be teaching with MD5 hashing. It is not secure at all, and is easily cracked. A lot of people will probably use this form on their web sites and run a huge risk of this inf being stolen. I get that this is just a lesson, but you should be teaching best practices with something like bcrypt. Sorry to knock your tutorial, but this is 2017. We need to change the mindset when giving lessons on building forms.
Good point kjemradio, I actually meant to add a note about that, but since I'm using youtube's end screens instead there is no way of adding the pop up bubbles anymore....
Dear Sir, nice and useful tutorial. Unfortunately i have got interesting problem during test of it. I have wrote down php code and tray to test it. So i have entered differend password to test code but i did not get any Alerts. And also there are no any code mistakes. I have checked code few times, did not find any mistakes. So sorry for the stupid question what could be a problem. I use Notepad++ and XAMPP as localhost.
I've changed the images folder to image folder but still get file upload failed, when I spit out the path with print_r it shows the path as image/photo.jpg I created the database with ubuntu terminal if that makes any difference.
I am very new to this website building, don't know much code. I tried to follow your video and got as far as copying and pasting from your code pen into the two different files that I saved in their own folder. Problem is when I try to look the result in the browser window, on the php page i get a whtie screen with little grey botton up in the left corner. Mine looks nothing like your layout. What am I doing wrong. The html code has been copied so it has all the headers and title page stuff, I have also relinked to the css file, still nothing, I have 2 separate things. Please help me figure out what I am doing wrong. I need to try link a register form to a database. I did downloand the workbench I saw on your video, worked far easier than doing it in my php admin - thanks for that one.
Hello, How can you do it?. Create a file add.php witch provide form contain fields first name , last name, and email, image. Using post method to submit form and action process_add.php . in process_add.php get all data from form then write to files(users.txt) and upload image to server.
so my sign up info is in a drop down box in a pull out side bar. it works great except for the error bar which is always displayed but with no text and if i do get an error the page will reload and you have to click the sign up area again to see the error message. what i want is for the page to reload and instantly display the sign up area with the error message. how would i do that?
Can i edit same code for adding more info like First, Last name, address, account type e.t.c I will need a clarification. Awesome video and please get back
Sir how can i made auto back in home or register page when message say successfully register on your register site? What is the code and were to put it?
Can users be able to for example look at aPDF file, or a jpg file within their own accounts? and change their own info like a date or password? Great Tutorial by the way..
This tutorial would be bees knees if this was part 1. Then part 2 stated everything that wasn't best practice in this video. Then part 3-5 was you breaking all this out into classes and doing it the right way. I am new to php and I watched this video for the HTML and CSS, also thank for showing me how to get the POST variables. Super helpful.
newbie here but so easy to learn php with your style of explaining it clearly...
for people having the issue of not being able to display the success msg, the welcome + user's name msg or the picture on welcome.php
try this:
replace these lines:
by these lines:
or "prior to PHP 5.4 requires short tags be enabled in your php configuration" etc...
stackoverflow.com/questions/2150238/php-variable-in-html-no-other-way-then-php-echo-var
stackoverflow.com/questions/2185320/how-to-enable-php-short-tags
Thanks, helped
I love you pattern of coding, you made php look very simple. i'm a big fan. keep the good work on.
Hi Clever...Thanks! This is really well structured and I will give myself good minutes to dive into all these vids...but also try to apply the coding (ideas) to my projects (PHP, MySql etc...)
Great tutorial CleverTechie! Everything i needed to get started with writing actual code in php is in this video. Thanks a lot!
This is a great tut man! Plain, simple and to the point. Hope you have much more of this stuff that I can watch
Thank you! :)
Please do update the links in the description!!
@@clevertechie I want to download your files. Can they run on a UNIX Apache server?
finally a english fucking speaking tut
lol ikr
actually it's PHP and Mysql ;p
exactly! sigh!
wow seen a lot videos discussing about this things but i really like your videos you are a born programmer to entertain :)
I appreciate your inspiring words! :)
Thanks to this tutorial i was able to build cms *hat off*
I don't know you but you are so awesome !!!!!!!!!!!!!!!!! Thank you for being here !!!!!!!!!!!!! Maybe we could meet someday . :)
what is the purpose of the exclamation mark '! image !' at the beginning and at the end of the preg_match( 'image' ,$_FILES(. . .)) function?
YOU'RE THE BEST! thanks so much for putting this up you have no idea how much you helped me out in only 25 minutes lol
how are u
Good tutorial. You are PHP teacher on UA-cam. BEST.
hi there, very nice and straight to the point video thanks for that. I have noticed on this video one fundamental validation missing. Duplicate entry checking i.e if the username already exist in the database then what happens?
At current state of your code, you could have multiple accounts with same username, password, email and avatar and only differentiated by the primary key in the database.
hello zak, i'm a beginner. wher did you insert that code to fix the problem of "username/email already used" ? ty
This video is Excellent! I appreciate your knowledge and the detailed way you communicated the information. Thank you.
Love your work!!!! 1 question how do i convert this form into a login system using the same string encryption. thanks
I have been benefited a lot of your tutorial. Please make a log out option in this connection.
As usual 1000 stars.
Finally i find this purfect tutorial, thanks dude
Hey clevertechie , i don't want to be rude but i guess you don't buy a microwave with only refroze option right ? could you do a video with functions ( check if already registered) and on login (login only when the user is registered ) ? cause i really cant find my way on fully functional Registration/ Login form . You got us covered with Avatars here so in exception could you make all the PHP for Reg / Log in different file so other files can just include ' file.php ' ?
Great tutorial but please how do you check if the email address is a valid email or fake email. Thanks
very good, you've been resolving my prob!
Very good Clever!
Hello. This tutorial perfect! thanks. That would be a question for you that create login panel ? not login panel.
nice tuto. I yet think that verifying the content of variable would be nice to add as a step, as only relying on html5 you give a chance to the user to edit so verfications are better on server side. otherwise, cool tuto. I liked it.
Thank you! It worked for me.
Awesome helpful as much (y) !!
Which Netbeans version you were using here
Thank you so much! Exactly what I've been looking for!
Really awesome tutorial! I checked out your channel but I couldn't find any video about AJAX, more specifically a way to show data from a PHP without including the PHP code in the file. Are you planing on making a tutorial for that?
Yes I'm planning on making AJAX tutorials very soon, thank you for your suggestion.
Good tutorial for beginners but lucks important programming practices like prepared statements and bound parameters. Ah not to mention Post/redirect/get design pattern. Not bad but good for start.
Thank your very much for your help.
Can you use Bracets for this tutorial? That would be helpful! Cool vid too!
Thanks great Tutorial. Hopefully you continue this php tutorial series. Especially security is interesting. One question. It seems that my browser never shows the picture like he's blocking it. Any ideas? Thanks
Great Tutorial. Just this.
Another great tutorial :) Could you share the mysql queries you used along with the php code? (I found the html css on codepen).
Also, I wish you also made a tutorial on login logout functionality while also explaining how does sessions exactly work how they keep the user logged in. I know there are tons of tutorials but I've benefited most from your videos.
Will do
clevertechie.com/code/bnet-form-complete.zip
Great tutorial, can you make a video on how to build such a site on wordpress ?
I mean is it possible to add our own php and use the db on wordpress ?
Everything is working atm except for the notifications, for example when I'm on my profile page and go back to login page it is showing me this error -->
Notice: Undefined variable: _SESSION in C:\xampp\htdocs\sign.php on line 43
Great tutorial! But what is the name of that editor?
Thank you so much for this tutorial!
Excuse me, I am lost at the part where you do the line
mysql = new mysql('localhost', 'root,' 'mypass123')
like how did you get all those variables? Am I supposed to type the exact same thing as you do? If not then where do I get the information to properly input the fields?
remove mypass123
mysql = new mysql('localhost', 'root,' '');
Excellent work bro
nice one really appreciating 😄
Amazing tutorial! And thank you so much for providing the source code as well!
Thank you Cassandra, I'm glad you liked it!
@@clevertechie Also I know this is 4 year ago, but I watched your video back in freshman year, just thinking of switching my major to CS. I didn't even know how to put together a nested for loop. Just wanting to come back and said I'm graduating this year with a CS degree and had done an internship at Google. You're awesome dude! Keep making videos like this.
Man looks so easy to you, hope I can program like that :( .
How do you get to work with MySQL although the newest version of XAMPP supports MariaDB? Are you using an older version of XAMPP? Don't you run into security issues if so?
This tutorial is good, it is really helpful !
Thank you for this tutorial.
very good stuff to keep!
Hello Clever Techie,I got an error on line 25 stating that, Fatal error: Uncaught Error: Call to a member function real_escape_string() on null in C:\wamp64\www\UserRegistration\form.php on line 24 ??? ,please help me .
You can remake the script
im less than 1:30 into the video and iv already spent 2hours installing diferent software!
bro just install sublime text editor and wamp server..simple!
I have a little problem. Even though the registration works, the error messages don't show up. Do you have any idea why?
thanks for video bro ! but, why i can't change the style on css ???
This video is like Lebron James teaching a bunch of Jr. High School kids how to dunk from the free throw line.
Saved my fucking ass for an assignment. Thank you so much! Took me a while to get everything working, but it was straight forward and simple. You're a legend!
Amazing tutorial
when i fill in the form and press register it says this: This page does not work
localhost can not process this request at this time.
HTTP ERROR 500.
and it doesn't go into my database. does anyone know a fix?
You should not be teaching with MD5 hashing. It is not secure at all, and is easily cracked. A lot of people will probably use this form on their web sites and run a huge risk of this inf being stolen. I get that this is just a lesson, but you should be teaching best practices with something like bcrypt. Sorry to knock your tutorial, but this is 2017. We need to change the mindset when giving lessons on building forms.
Good point kjemradio, I actually meant to add a note about that, but since I'm using youtube's end screens instead there is no way of adding the pop up bubbles anymore....
use password_hash
site/.htaccess
*deny from all*
PLEASE ADD OR EDIT THIS CODE INTO YOUR HTACCESS AS THIS WILL DENY ALL FILE SEARCHING FROM OTHERS. thanx
You should also never pass values directly into your SQL statement. This is what allows SQL Injection attacks.
Dear Sir, nice and useful tutorial. Unfortunately i have got interesting problem during test of it. I have wrote down php code and tray to test it. So i have entered differend password to test code but i did not get any Alerts. And also there are no any code mistakes. I have checked code few times, did not find any mistakes. So sorry for the stupid question what could be a problem. I use Notepad++ and XAMPP as localhost.
Nice man! You explained it pretty good :)
your web looks so awesome 😎😎😎
Me: wow session, image-path, form validation, I am going to pass my exam.
Also me: what am I doing here??
wow are you blizzard game fan?
this is rare... btw thanks for the tutorial bro...
Oh man!
No problem
thank you , you helped me a lot
hi, am gettting array() message after registering? how does a database 'accounts' know you want to put information into table users?
I've changed the images folder to image folder but still get file upload failed, when I spit out the path with print_r it shows the path as image/photo.jpg
I created the database with ubuntu terminal if that makes any difference.
I am very new to this website building, don't know much code. I tried to follow your video and got as far as copying and pasting from your code pen into the two different files that I saved in their own folder. Problem is when I try to look the result in the browser window, on the php page i get a whtie screen with little grey botton up in the left corner. Mine looks nothing like your layout. What am I doing wrong. The html code has been copied so it has all the headers and title page stuff, I have also relinked to the css file, still nothing, I have 2 separate things. Please help me figure out what I am doing wrong. I need to try link a register form to a database. I did downloand the workbench I saw on your video, worked far easier than doing it in my php admin - thanks for that one.
good job man keep going
Please i don't understand the how you set up the MySQL workbench....
cant access the variables to be displayed on the welcome page "Undefined index" even though everything else works and code is correct
sites like wrodpress allow the building of pages with user registration form do you know any reason why building it this way is preferable
Hello, How can you do it?.
Create a file add.php witch provide form contain fields first name , last name, and email, image. Using
post method to submit form and action process_add.php . in process_add.php get all data from form
then write to files(users.txt) and upload image to server.
in localhost , with xampp, my form doesnt look like that after copying the html and css . What i am doing wrong? Thanks
This is what I call an awesome video!!
how can we do the same on an online host?
You just upload all the files to an online host
thankyou, it's work
so my sign up info is in a drop down box in a pull out side bar. it works great except for the error bar which is always displayed but with no text and if i do get an error the page will reload and you have to click the sign up area again to see the error message. what i want is for the page to reload and instantly display the sign up area with the error message. how would i do that?
Can i edit same code for adding more info like First, Last name, address, account type e.t.c I will need a clarification. Awesome video and please get back
hi i want to ask a question how i can create modals instead of echo.. thank you.
Sir how can i made auto back in home or register page when message say successfully register on your register site? What is the code and were to put it?
Can users be able to for example look at aPDF file, or a jpg file within their own accounts?
and change their own info like a date or password?
Great Tutorial by the way..
This is a good suggestion, thanks! I will make a follow up video on this that will go into EDIT account functionality in detail.
How do you get "New" to appear above information_schema?
Do you have a tutorial of php forget password and also account registration verification in php? please?
If i did not want people to have to upload avatars, would i just miss out the avatar bits?
wow So Great Work awesome
Hi there. I am getting a delimiter error that must not be alphanumeric or backslash. Help
Nice Tutorial
can't you create a good playlist for these tutorials ?
I could not connect my registration to the database. What could be the possible problem? it only refresh when I register
nice work
what is the text editor you are using?
I keep getting a "file upload failed" error but my code is exactly the same as in the video. Please help
Thanks Man!!!!
You're welcome :)
downloaded the code. get error message "file upload failed".
What can I do?
hey who do you use for hosting im using bluehost and cant connect?
What was the text editor ,I liked it
NetBeans
Thanks!
I am running a local server, but I only see the code once I add php. Is there any way to see the actual page?
Please give the link to download those avatars!
Is there any video on how to setup net beans for PHP and MySql?
I'm going to make one soon