Push data JavaScript and PHP Forms


show more Pushing data provides you with in-depth training on Developer. Taught by Ray Villalobos as part of the Validating and Processing Forms with JavaScript and PHP show less
please wait ...

Pushing data

Now that we have our database and tables ready, and we've created a file to store our database log in information, we're ready to push information from our form into our database. Now, if you've got your server set to display notices and warnings, you might notice some notices if people don't fill out some fields. So before I do anything, I'm going to clean up that by assigning an empty value to anything that comes across with no data. So I'm going to go into my process.php file and right at the very top, you'll see that if these values come in our set, then we assign them to variables. But if they're not set, they can be empty.

And sometimes that causes a PHP notice. It's not really a big deal. In production you should never have your notices turned on, but in development you may have them on, and they may be annoying you. So, I'm going to show you how to get rid of that. And what you want to do is, essentially add else right here, ...

Pushing data
Video duration: 8m 36s 2h 51m Intermediate

Viewers:

Pushing data provides you with in-depth training on Developer. Taught by Ray Villalobos as part of the Validating and Processing Forms with JavaScript and PHP

Subjects:
Developer Web
Software:
JavaScript PHP
Author:
please wait ...