What can I say?
But well done for sticking with me through this entire course.
We've pretty much reached ...
I know ðŸ™ˆ ... I hate even saying it, but we've pretty much reached our last section in this course.
But let's cheer up, because we have learnt a lot.
It's been a super, super fun time.
And in this last section I do want to touch on a bit of server-side processing.
I know this course is majority focused on client side validation and building forms on the client side.
I just don't have enough time in this course to teach you about servers.
Servers are a whole topic in and of itself, but I thought it wouldn't be complete if I didn't at least
touch about it and talk about it.
So when we go and submit a form, that data has to be submitted somewhere.
And we've spoken about client side validation that you need to perform checks on the front end because
it increases performance, it improves performance and improves UI.
Right,
you don't want the user to submit a form,
it goes to the server.
The server then says, "Hey, there's an error" and sends it back to the user.
You don't,
well, you want to try and avoid that if you can.
But, as I keep mentioning, front side validation is not enough.
You do need more, and you need to also ensure that your server side code checks the data.
But again, that's a topic that's beyond the scope of this course.
But what I do want to show you is that I want to show you that there are different ways to submit form
data to a server.
And I keep saying you can use the form wrapper, right?
We can put the method attribute on there, a GET or POST request.
We can put the action attribute, and that defines where the data is being sent to. And then your server listens
on that URL for that request, and processes the data.
But there's another way ... and the other way to submit form data is via AJAX.
Don't be intimidated by all these fancy words.
AJAX just means Asynchronous JavaScript and XML.
So what I want to do in this section is I want to talk about these things a bit more.
I want to show you examples of using AJAX.
I want to show you an example as well of creating a PHP server and actually submitting data to a server,
that server listening for the data, and then displaying something back.
But I'm not going to only give you a PHP example.
I'll also start up a Node.js server, I'll show you how that works.
So, it will be an interesting section.
It's not going to be super long, it's not going to be super detailed, but it should give you enough
so you can get started yourself on more complicated server side processing.
But enough said.
I'm just talking and talking and talking.
So let's jump into the very first lecture in this section.
I can't wait.