You currently have a course on codeigniter 4 on Udemy. How comprehensive is that tutorial covering features of the framework? I might be interested in that one.
The question of how much input sanitization e.g. strip_tags( trim( $_POST['value'] ) ) would be advisable before validation, or rather not using any sanitization at all before input validation.
This channel deserved more than 8k+ subscribers , hopefully you will not get tired in continuing in sharing your knowledge with us Dave. Blessed you. more power. ❤
I'm with you. His Beginner's PHP course was so simple even I understood it. Dave's a cut above most of the instructors on Udemy (though many are knowledgeable). He's got a great and measured speaking voice, knows his subject and takes his time explaining the subject.
Usually I need to watch 5 tutorials do be able to do something, you managed to make everything working well on the first try, many thanks for your help
Hi Dave, I am new to PHP and have tried about a dozen different videos but could not get the data from my registration form to populate into my database. Your the first one that I had success. I also learned a lot while I was following along. I hope you decide to do a tutorial on designing a membership login system. Keep up the great work and I appreciate you taking the time to do this video.
Thank you soooo much for this video. I was literally struggling to complete my project based on a similar concept. I referred to 10+ websites and other videos but i finally understood how to actually do this after watching your video. SO a big thank you. Please keep helping people
This video helped me so much! Thank You! I watched so many other videos trying to figure out this topic and you were the first to explain it well enough and show exactly how to complete the steps.
Your content is a life saver. It's really difficult to find content where it takes you step by step process with a good explainaton. after tons searching I found this gold mine :)
We had a 1st gen Echo in our master bathroom for listening to music in the morning ruclips.net/user/postUgkxABghAEkaIDGZfHRBH3D3rBrlraNmnC71 and while in the shower. I didn't realize how tinny and awful the sound output on the original Echo was until we replaced it with the Studio. It was a sonic upgrade far beyond what I was expecting. Just wow. I love it because it's like having speakers IN the shower. My friend likes it because the music is so loud that she can no longer hear me singing. So that's a win-win.
This channel is awesome! Thanks for every content you do, I can see how much effort you expend to bring us truly good videos. I know this is beyond this video scope, I'm curious to know which distro you're generally using on your videos showcases?
Hey, I just watched this video and this was quite helpful to me, Thanks Man. Im gonna check all your videos. Love you man. Your discription was way good and understandable.
Funny was only thinking yesterday, we must be due for a video. Purchased three of your courses on Udemy and found them easy to learn to the point I am cutting code in a major work project
thank you so much for helping me. I'm a newbie in web development. looking a mentor. :) i will followed you and thank you so much. im from philippines.
This video is very insightful. Thank you! I ran into trouble when I clicked the button to submit the form. Instead of displaying an array, the PHP code is displayed. I moved the files to the root folder for XAMPP, and received a similar error (error 405, "this page isn't working") until I typed in localhost/[directory]. Hope this helps people with a similar issue.
Brilliant video! I am trying to learn how to do this I JavaScript. For some reason I find this easier to do in php.. If you by chance know about a good resource that teaches how to do this I JavaScript also I would appreciate that:-) In the meantime, I’ll stick with this in php:-)
thanks you for the guide! is there a way to send everything done here to another PC and for it to work the same? including the DB configuration on phpmyadmin? how do i do that? if not what can i do to create a simple page with db to be able to send it to others and work the same as it works for me?
Thanks for the lesson. But I have a question. In visual studio code, I am filling in the HTML and when I made read the php page on browser the table lines are given with the NULL result. I am trying for along time on this issue. Have you any idea about this is issue?
Hi Dave, thanks for the video I was looking for. Everything else is working fine instead the records are not inserting into message table and there is no error showing in code or error log. Connection to the database was successful.
Try using the mysqli_error function just after the code is insterted, and temporarily comment out the line that redirects so you can see the error. Documentation is here: www.php.net/manual/en/mysqli.error.php
Love the tutorial but it seems like there's a bit missing around having php downloaded and running and how that's vital for this to work. Currently one hour into trying to trouble shoot but no luck. Can't get the php file to show on a web browser
first i'd like to convey words of appreciation for your impressive work. are u using visual studio to write the code or any recommendation for HTML,PHP texteditor? do i need to start the mysql server in my xampp before doing all this? or are you using xampp at all in the first place? your answer is greatly appreciated. thanks
I used Atom for the video, but this has been discontinued now. At the moment I recommend VSCode as an editor. Yes, you need to start the web server and the database server for this to work. I'm using (and recommend) XAMPP.
In this example, you just go back in the browser. If you want to clear the form, you can refresh it by holding down the left shift key while pressing reload. In practice you'd probably have some client-side validation in JavaScript on the form, to make sure the form is valid when it's submitted. The server-side validation is just to make sure valid data doesn't get to the database.
Was character binding originally introduced for security? There are easier ways to edit strings and I’m completely new to php [and web dev], kinda curious. Those methods do involve quotes, but the param binding still ends in quotes, so is there a real difference between it and the other string manipulation methods?
Brilliant video! Is this possible to do but where the html form is stored in a shared drive and the database is Microsoft access? Any guidance on this would be amazing!
You can connect to an Access database using PHP, details here: www.infocaptor.com/microsoft-access-database-using-php-pdo-odbc-example Although you'd still need a web server to run the PHP code.
Hey, I have a question. Let's say I want to use one form that is able to insert data into multiple tables, how do you do that? In the tutorial there is only one table that is being inserted with data. I can imagine you need multiple variables that have the "INSERT INTO tablename (X, Y, Z) VALUES(?, ?, ?, )" but how do you deal with the $stmt and mysqli_stmt_execute? Btw the tutorial was top notch. Learnt a lot from your vid!
Hi Dave! When I submit the form, instead of being processed through the PHP file it just shows me the code from the process-form.php. I do have the method="post" in my form, so I really don't know what is going on. Could you please help me?
Hi Dave. I am still a bit new to coding but was wondering if it is possible to add a button: "take photo". Can a picture then be taken and added to the mysql database or does this option not exist?
You can do this with JavaScript in the browser, e.g. usefulangle.com/post/352/javascript-capture-image-from-camera To save it, you'd have to upload it to the server. You don't usually store binary files like images in a MySQL database, what you'd do is upload the file to a folder on the server, and store the filename in the database instead.
I want to enroll to your course. But im really looking on how to extract data from mysql and display it to html. none of these tutorial here works on newer version of chrome browser.
but how can i take this to a web server? I have in my server on ubuntu the file.php and the index.html copied from your video and when I access the server with my phone and enter the message, on phpmyadmin I can't see nothing.
Hey Dave, great tutorial, however all my checkboxes always return NULL, when they're unchecked AND when they're checked too. I have several, gave them all different names, and they all always return NULL. You know why that might be the case?
@@dave-hollingworth hello, thank you for the reply, i procrastinated about this a lot, and finally decided to try and fix my mistake. i did not finish writing the php file. i apologize for wasting your time. sincerely, me
Hello, I would like to ask a question. I followed the scripting process while modifying the involved data files to fit my own database, however when I press the Send button in the HTML page it redirects me to a page with the php code in plain text and the data inputted isnt saved into the mysql database. Is there a way to solve this? Much appreciated in advance!
It sounds like you're opening the form as a file (in the web browser's address bar it looks like c:\folder\form.html) instead of from a web server - the address in the browser's address bar should be something like localhost/form.html - then when you submit it, the PHP will be executed. If you need a local web server, I recommend XAMPP
Hi Dave, Thanks so much for making these videos. I am having trouble with the mysqli_connect function. It gives me the following error when I run the code: Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in C:\xampp\htdocs\Sample Database\process-form.php:20 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Sample Database\process-form.php on line 20. I tried removing the semi-colon from the extension=mysqli line in the PHP program file but still no luck. Any help is greatly appreciated.
Hai, I have a doubt, i have changed the mysql and apache server port numbers, I have printed the values in the aray but can't connect to localhost, need to add any additional codes because i have change the default port numbers
Hi! Thank you for a very nice tutorial, well explained. It works on my server, but not if I copy it to a child theme in wordpress, to submit a form through the rest api. In Postman it seems to work, using jwt auth, but the values are not saved. Any idea why ?
If you're using an API, the data might need to be json encoded, instead of just using the $_POST array. Check out my video on APIs to see how the data is passed using the PHP input stream instead of the $_POST array: ruclips.net/video/X51KOJKrofU/видео.html
Can you please tell me why I can't even do the very beginning of this because my php files download instead of showing Array([Type]=> 1) I've been trying everything and I have no idea what is causing this.
Are you opening your files served from a web server or using the browser as a file explorer? If the address in the address bar of the browser is something like file:///Downloads/form.html then this is why - the address needs to be something like localhost/form.html. If you don't have a web server installed, I suggest XAMPP.
Hi, i'm so new in this. In the minute 1 that we have to type "localhost/form.html" in the browser and it will show the work. But when i try it doesn't show the work. It says "Not found". Help me please, thank you
You need a web server installed, e.g. XAMPP will install all you need. Then you need to put the files in the root folder of the web server, e.g. C:\xampp\htdocs
I'm quiet worried about that select tag (dropdown). Isn't that a bad practice? because user can change it's value through inspect elements. Same with radio button
You're right, but the same is true for any input element. This is why you need to verify values on the server. Using a select tag is convenient for the user if you want to restrict their choice to a few options. Someone could in theory bypass it, yes, but for most users it's just a simple way to make them choose an option.
When I submit the form with information, I don't see any output on my screen. It's just a blank screen. Why would this happen? Is this because I'm on a Mac?
What do you find most challenging about working with HTML forms and PHP?
Security on the client and server side.
You currently have a course on codeigniter 4 on Udemy. How comprehensive is that tutorial covering features of the framework? I might be interested in that one.
@@realchicagophill It's pretty comprehensive - you can access the course here: davehollingworth.net/codeignitery
@@dave-hollingworth I'm half way through it.
The question of how much input sanitization e.g. strip_tags( trim( $_POST['value'] ) ) would be advisable before validation, or rather not using any sanitization at all before input validation.
This channel deserved more than 8k+ subscribers , hopefully you will not get tired in continuing in sharing your knowledge with us Dave. Blessed you. more power. ❤
Dave is an amazing teacher and Masters PHP, I took one of His courses in Udemy and it was one of the best courses I have ever taken.
I'm with you. His Beginner's PHP course was so simple even I understood it. Dave's a cut above most of the instructors on Udemy (though many are knowledgeable). He's got a great and measured speaking voice, knows his subject and takes his time explaining the subject.
Usually I need to watch 5 tutorials do be able to do something, you managed to make everything working well on the first try, many thanks for your help
Hi Dave, I am new to PHP and have tried about a dozen different videos but could not get the data from my registration form to populate into my database. Your the first one that I had success. I also learned a lot while I was following along. I hope you decide to do a tutorial on designing a membership login system. Keep up the great work and I appreciate you taking the time to do this video.
I do have a signup and login system video already, that I hope to expand on soon with a "part 2": ruclips.net/video/5L9UhOnuos0/видео.html
Thank you soooo much for this video. I was literally struggling to complete my project based on a similar concept. I referred to 10+ websites and other videos but i finally understood how to actually do this after watching your video. SO a big thank you. Please keep helping people
Thanks Dave
I was able to understand and returned back in html, php & sql coding again.
Clear Explanation so I can follow your instruction with no error!
Thankyou Dave
Thanks Dave! I'm really impressed how you lecture. You find the right time to explain a concept or parameter. Well done!
This video helped me so much! Thank You! I watched so many other videos trying to figure out this topic and you were the first to explain it well enough and show exactly how to complete the steps.
This is the simplest and best explained tutorial on PHP and SQL very very helpful Hollingworth.......... respect
Thank you ! Lots of information in less than half an hour. Saved my day!
Your content is a life saver. It's really difficult to find content where it takes you step by step process with a good explainaton. after tons searching I found this gold mine :)
Thank you so much, had a dozen of tries , but no success, and here...my problems are solved any more!!!
We had a 1st gen Echo in our master bathroom for listening to music in the morning ruclips.net/user/postUgkxABghAEkaIDGZfHRBH3D3rBrlraNmnC71 and while in the shower. I didn't realize how tinny and awful the sound output on the original Echo was until we replaced it with the Studio. It was a sonic upgrade far beyond what I was expecting. Just wow. I love it because it's like having speakers IN the shower. My friend likes it because the music is so loud that she can no longer hear me singing. So that's a win-win.
Saved my day, month ,semester
Excellect video with minute details. Thanks so much for uploading this video. I am sure I will be watching more of your videos
You are a great teacher my friend! Good moderate pace and very well explained.
This channel is awesome! Thanks for every content you do, I can see how much effort you expend to bring us truly good videos. I know this is beyond this video scope, I'm curious to know which distro you're generally using on your videos showcases?
I use Xubuntu 22.04 LTS
Greatest video i've ever seen. You might just be a genius at the process of education
You deserve more subscriber!
Hey, I just watched this video and this was quite helpful to me, Thanks Man.
Im gonna check all your videos. Love you man. Your discription was way good and understandable.
Funny was only thinking yesterday, we must be due for a video.
Purchased three of your courses on Udemy and found them easy to learn to the point I am cutting code in a major work project
thank you so much for helping me. I'm a newbie in web development. looking a mentor. :) i will followed you and thank you so much. im from philippines.
Thank you Dave!
You helped me to understand the part that i dont understand to make my coursework :)
I wish you everything good in life :)
I have subscribed your api course from udemy
Very well explained and easy to follow, thanks.
Excellent video, the best explanation I've had, thank you.
Amazing Tutorial, absolutely life saver!
Thank you very much seriously.
Simple, focused, and powerful.
solid presentation, you the best. what editor did you use for tis video ?
Visual Studio Code, albeit with the interface simplified
Thank you so much Dave! I'm really curious about security of php code as I'm new to it
Exactly what I needed. Man, i owe you my college diploma
Thank you thank you thank you for all of these amazing videos about php!
Your explanation was excellent and sweet and understandable
thanks
thank you for your wonderful explanation sir
very detailed explanation
helped alot
thank you....
really excellent, noone could explain it better
Superb video, you are calm and composed :)
its good precise and to the point
Best Tutorial ever!
Excellent teaching skills!
This video is very insightful. Thank you!
I ran into trouble when I clicked the button to submit the form. Instead of displaying an array, the PHP code is displayed. I moved the files to the root folder for XAMPP, and received a similar error (error 405, "this page isn't working") until I typed in localhost/[directory]. Hope this helps people with a similar issue.
you're a legend!! thanks a lot, sir.
Brilliant video! I am trying to learn how to do this I JavaScript. For some reason I find this easier to do in php..
If you by chance know about a good resource that teaches how to do this I JavaScript also I would appreciate that:-)
In the meantime, I’ll stick with this in php:-)
this video saved me. thanks.
Thank you sir now I can connect html form to database!
The problem is that I can only see one record in the database after adding more
This could be for many reasons - try comparing your code to the code from the video (link in the description)
Great tutorial - thank you very much. You've got a new subscriber!
Great job Sir 👏
Legendary tutorial
This is amazing clear nice speed and amazing as usual i really enjoy every one you do.
Thank you for you work on these !
This is stuff that i could buy :)
thanks you for the guide! is there a way to send everything done here to another PC and for it to work the same? including the DB configuration on phpmyadmin? how do i do that? if not what can i do to create a simple page with db to be able to send it to others and work the same as it works for me?
is it possible to replace the "echo" at 23:40 with an html page (with css and stuff)?
Absolutely, just close the PHP with the closing tag ?> and start some HTML
GREAT VIDEO😄😄😄
thank you ! helpful
Great job, thank you!
Thank you very much sir! God bless you
Thanks for the lesson. But I have a question. In visual studio code, I am filling in the HTML and when I made read the php page on browser the table lines are given with the NULL result. I am trying for along time on this issue. Have you any idea about this is issue?
Try using var_dump to print out the contents of the variable that contains the database data, see if that contains null values.
Hi Dave, thanks for the video I was looking for. Everything else is working fine instead the records are not inserting into message table and there is no error showing in code or error log. Connection to the database was successful.
Try using the mysqli_error function just after the code is insterted, and temporarily comment out the line that redirects so you can see the error. Documentation is here: www.php.net/manual/en/mysqli.error.php
Love the tutorial but it seems like there's a bit missing around having php downloaded and running and how that's vital for this to work. Currently one hour into trying to trouble shoot but no luck. Can't get the php file to show on a web browser
Try Xampp, www.apachefriends.org/
@@dave-hollingworth why didn't you mentioned this before in the video?
first i'd like to convey words of appreciation for your impressive work.
are u using visual studio to write the code or any recommendation for HTML,PHP texteditor?
do i need to start the mysql server in my xampp before doing all this? or are you using xampp at all in the first place?
your answer is greatly appreciated. thanks
I used Atom for the video, but this has been discontinued now. At the moment I recommend VSCode as an editor. Yes, you need to start the web server and the database server for this to work. I'm using (and recommend) XAMPP.
Great presentation. When an error is experienced, or the form was completed successfully how do you restart the form entry ?
In this example, you just go back in the browser. If you want to clear the form, you can refresh it by holding down the left shift key while pressing reload.
In practice you'd probably have some client-side validation in JavaScript on the form, to make sure the form is valid when it's submitted. The server-side validation is just to make sure valid data doesn't get to the database.
Thank you sir
Thanks for your wonderful contents. It's really helping me. Please can you make a core PHP tutorial with the Twitter API? Thank you
Thanks for the idea!
Thank u Dave, good
THANK YOU SO MUCH!!! :D
Could you please make a video about how to show the stored data and be able to filter it? Thanks in advance
Amazing, Love you buddy!
thank you so much☺
Very nice video you are an absolute help for me 🤠
Great video
can you create a search function to pull from the database created via the html form? i am thinking this would be a php funtion
Was character binding originally introduced for security? There are easier ways to edit strings and I’m completely new to php [and web dev], kinda curious. Those methods do involve quotes, but the param binding still ends in quotes, so is there a real difference between it and the other string manipulation methods?
Brilliant video!
Is this possible to do but where the html form is stored in a shared drive and the database is Microsoft access?
Any guidance on this would be amazing!
You can connect to an Access database using PHP, details here: www.infocaptor.com/microsoft-access-database-using-php-pdo-odbc-example
Although you'd still need a web server to run the PHP code.
@@dave-hollingworth thanks!
Maybe this could be your next video? Haha
That is awesome Boss
Hey,
I have a question. Let's say I want to use one form that is able to insert data into multiple tables, how do you do that? In the tutorial there is only one table that is being inserted with data.
I can imagine you need multiple variables that have the "INSERT INTO tablename (X, Y, Z) VALUES(?, ?, ?, )" but how do you deal with the $stmt and mysqli_stmt_execute?
Btw the tutorial was top notch. Learnt a lot from your vid!
I replied to this in the code Gist here: gist.github.com/daveh/c5a691136c7e3b81dc8e72b3fc1054b3?permalink_comment_id=4232439#gistcomment-4232439
@@dave-hollingworth Hi Dave, thanks a lot for your reply. You're a great teacher and I subbed to your channel and followed your Github!
Hi Dave!
When I submit the form, instead of being processed through the PHP file it just shows me the code from the process-form.php.
I do have the method="post" in my form, so I really don't know what is going on.
Could you please help me?
Please see this video: ruclips.net/user/shortsl7ERVQd7Ti8?feature=share
Nice work
Hello! ive been wondering where can you access phpmylogin because I can't find that certain web. Do I need to download it?
Yes, you need to install it - if you're using XAMPP, it's included
Hi Dave.
I am still a bit new to coding but was wondering if it is possible to add a button: "take photo". Can a picture then be taken and added to the mysql database or does this option not exist?
You can do this with JavaScript in the browser, e.g. usefulangle.com/post/352/javascript-capture-image-from-camera
To save it, you'd have to upload it to the server. You don't usually store binary files like images in a MySQL database, what you'd do is upload the file to a folder on the server, and store the filename in the database instead.
Hi Dave, Nice video tutorial . One small query here, how to run it on localhost?
You need a web server and database server installed - I recommend XAMPP if you don't have one
Thank you.
It is terrific
what shortcut did you use to automatically adjust the indentation in vscode?
Highlight the text you want to indent, press tab (or shift-tab to reduce the indentation)
I want to enroll to your course. But im really looking on how to extract data from mysql and display it to html. none of these tutorial here works on newer version of chrome browser.
I've tried it in Chrome and it works for me - what exactly is the problem you're having?
but how can i take this to a web server? I have in my server on ubuntu the file.php and the index.html copied from your video and when I access the server with my phone and enter the message, on phpmyadmin I can't see nothing.
You need to upload the files to a web server, e.g. davehollingworth.com/go/hosting
Hey Dave, great tutorial, however all my checkboxes always return NULL, when they're unchecked AND when they're checked too. I have several, gave them all different names, and they all always return NULL. You know why that might be the case?
Check the name attribute is specified like this: name="example"
@@dave-hollingworth hello, thank you for the reply, i procrastinated about this a lot, and finally decided to try and fix my mistake.
i did not finish writing the php file.
i apologize for wasting your time.
sincerely,
me
@@alephcake No problem, thank you for your reply!
I've got a problem when i submit my form, I am just geting the php code and the data isn't sent. How can i make it work ?
ruclips.net/user/shortsl7ERVQd7Ti8?si=ooLBabhDo-qR3Rj6
Hello, I would like to ask a question. I followed the scripting process while modifying the involved data files to fit my own database, however when I press the Send button in the HTML page it redirects me to a page with the php code in plain text and the data inputted isnt saved into the mysql database.
Is there a way to solve this?
Much appreciated in advance!
It sounds like you're opening the form as a file (in the web browser's address bar it looks like c:\folder\form.html) instead of from a web server - the address in the browser's address bar should be something like localhost/form.html - then when you submit it, the PHP will be executed. If you need a local web server, I recommend XAMPP
@@dave-hollingworth I made this same mistake, thank you for the resolution
Hi Dave, Thanks so much for making these videos.
I am having trouble with the mysqli_connect function. It gives me the following error when I run the code: Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in C:\xampp\htdocs\Sample Database\process-form.php:20 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Sample Database\process-form.php on line 20.
I tried removing the semi-colon from the extension=mysqli line in the PHP program file but still no luck.
Any help is greatly appreciated.
It does look like the MySQLi extension isn't installed or enabled - does your installation contain more than one php.ini perhaps?
Hai, I have a doubt, i have changed the mysql and apache server port numbers, I have printed the values in the aray but can't connect to localhost, need to add any additional codes because i have change the default port numbers
You can specify the MySQL port number as the fifth parameter to mysqli_connect: www.php.net/manual/en/mysqli.construct.php
nice tutorial
Hi! Thank you for a very nice tutorial, well explained. It works on my server, but not if I copy it to a child theme in wordpress, to submit a form through the rest api. In Postman it seems to work, using jwt auth, but the values are not saved. Any idea why ?
If you're using an API, the data might need to be json encoded, instead of just using the $_POST array. Check out my video on APIs to see how the data is passed using the PHP input stream instead of the $_POST array: ruclips.net/video/X51KOJKrofU/видео.html
thank u very helpful
Can you please tell me why I can't even do the very beginning of this because my php files download instead of showing Array([Type]=> 1) I've been trying everything and I have no idea what is causing this.
Are you opening your files served from a web server or using the browser as a file explorer? If the address in the address bar of the browser is something like file:///Downloads/form.html then this is why - the address needs to be something like localhost/form.html. If you don't have a web server installed, I suggest XAMPP.
Hi, i'm so new in this. In the minute 1 that we have to type "localhost/form.html" in the browser and it will show the work. But when i try it doesn't show the work. It says "Not found". Help me please, thank you
You need a web server installed, e.g. XAMPP will install all you need. Then you need to put the files in the root folder of the web server, e.g. C:\xampp\htdocs
The data is entered in to php tables is it possible to insert into mysql tables.
I'm quiet worried about that select tag (dropdown). Isn't that a bad practice? because user can change it's value through inspect elements. Same with radio button
You're right, but the same is true for any input element. This is why you need to verify values on the server. Using a select tag is convenient for the user if you want to restrict their choice to a few options. Someone could in theory bypass it, yes, but for most users it's just a simple way to make them choose an option.
When I submit the form with information, I don't see any output on my screen. It's just a blank screen. Why would this happen? Is this because I'm on a Mac?
Please see this: ruclips.net/user/shortsK4TMD0mLOJY?feature=share