Submit form to php

Главная » Tutorials » PHP » Submit form to php

In this lesson you will learn how to submit form to php. Each of you were registering on sites, entering login and password and so on. After this lesson you can submit any data to server and make simple validation.

You can submit form to the server with two methods – GET or POST. Difference between them, that data with GET method pass with url. You understand, passing login and password is not a good idea. You need to use POST method. On the server some script recieves data from html form. But where do we find this data. PHP put this data to global array – $_POST or $_GET (depending on the submit method). Like any other array, these arrays have got keys. Keys are name attributes from html form. Values are user data.

Подписаться на рассылку

Будьте в курсе - получайте последние статьи на свой email

Ваша подписка успешно оформлена

Pin It on Pinterest

Share This