+ 3

What happen to the information after submitted (html)

I am Learning HTML and in learning about forms it teaches me how to use form and stuff... but what happens to the information in the form after submitted it? how to recieve the information?

31st Jan 2018, 11:53 AM
Syahrul012
Syahrul012 - avatar
2 Respostas
+ 1
It makes a request to the target url. Every input must have name attr. When you submit it, it takes the name and the value from all inputs. It depends on the form method what kind of request it makes. With POST method it writes the data into the request body and with GET method it’s in the target url. To catch the incoming data you must have server side language in the other end. Like PHP. The data is written like a variable (InputName=InputValue); $_GET[”InputName]; Gets the value from the url and $_POST[”InputName”] from the body. Example from request url with GET method. www.sololearn.com?name=name&age=18 With POST method the data is not complete hidden without ssl connection which you’re must use when sending passwords
31st Jan 2018, 12:40 PM
Toni Isotalo
Toni Isotalo - avatar
0
thanks so much for th info
31st Jan 2018, 1:20 PM
Syahrul012
Syahrul012 - avatar