From the course: HTML and CSS: Creating Forms

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Form submission and security

Form submission and security

- [Instructor] In this video, we will look at how forms are submitted. The form element has an action and method attribute, which will determine how the data is sent to the server. First, the action attribute. This is where the data gets sent. It needs to be a valid URL, either absolute or relative. A form isn't required to have an action, and if you don't include one, the default is the current page. When you're sending data from a web form, you need to make sure the data is secure. Every URL starts out with either HTTP or HTTPS. HTTP is a protocol for how data is sent, standing for hypertext transfer protocol. HTTPS is an extension of that protocol with a S at the end standing for secure. It uses encryption to send data. This means that it's much more difficult for anyone to intercept the data. It's generally better to use HTTPS when sending any data from a web form, but you definitely want to use it if you're sending anything sensitive, like logins or credit card numbers. To enable…

Contents