What is "PostBack"?

May sound like a silly question, but I can't understand how a postback works, if anyone can explain it to me thank you!

Author: BarrosKing, 2020-02-21

1 answers

PostBack is when you make a POST request for the same page, then it reloads and with the data you sent it changes.

Example: you have a page called Login.php or Login.jsp, when the user log in for the first time will have the field for him to enter the email and password, as soon as he clicks the "log in" button you will make post to the same Login page.php, if the user and password are valid it will be redirected to the login page by example, if they are not valid it will display an error message, i.e. the page makes a request for itself.

 1
Author: Eduardo Mior, 2020-02-21 10:55:41