Course Title: Web Development Masterclass
Course Link: http://youaccel.com/admin/cdisplay.ph...
Facebook: / youaccel
Twitter: / youaccel
Website: http://youaccel.com
Tutorial Content:
Up to this point, we have created and populated our database directly through PhpMyAdmin.
When creating web applications, the database is populated through user interactions with your website.
For example, the database we created contained registrations for newsletters.
The users registering for your newsletter, would do so directly through your website.
In this lesson we are going to explore inputting data into our database using an HTML form.
As shown in this example, the form has three fields, First Name, Last Name, and Email. We don't have to input the id or date because those two fields are automatically populated.
The HTML form can be found in your download's folder, corresponding to this lesson. This will save you time from having to code it yourself. Just remember that if you are using the script provided, you must place it in your phplessons folder.
With the form already created, we can start right away on the PHP script.
Name the PHP script register.php. We have set our form action to register.php, using the POST method.
You will need to create the register.php page that will process the inputted data into our database.