From the course: Validating and Processing Forms with JavaScript and PHP
Unlock this course with a free trial
Join today to access over 22,400 courses taught by industry experts.
Retrieving data from superglobals
From the course: Validating and Processing Forms with JavaScript and PHP
Retrieving data from superglobals
In this video we're going to take a look at how the data from the form comes into a processing script through the different PHP superglobals. And how you can access different types of data. Before I do that, I want to show you that I've modified the form we've been using a little bit. I've removed some of the fields to make it simpler, and also taken out the JavaScript calls. I've also taken out a (INAUDIBLE) parameters like Required and Pattern, so that we can isolate server-side validation without client-side intervention. Since this is going to invoke server-side validation, I'm going to be working on a live server. I've uploaded these files to an FTP website. You'll need to upload your own files to your own server if you want to follow along, but you can grab these from the Exercise files. One more change I've made is change the file extension on the form, from .html to .php. A lot of servers require that the file extension for server-side scripts be set to identify the language…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.