HTML Form action: post to self
Hello, I have been reading up on what happens when a form's action is set to 'self'. As I understand it, after hitting the 'submit' button, the form's information is sent back to the server, along with the 'action' information, which in this case would be 'pass on the form information to the same page that contains the form'.
What I'm not clear about is what happens next.
Does the server send a fresh copy of the html page that contains the form, along with the submitted form information?
Does the server send back only the form's information, and the browser refreshes the page locally, attaching to it the form's information sent to it by the server?
Does the browser know that the form is posting to the same web page, and not send anything to the server, just reloads the page, making the form's new data available?
Thanks!
Last edited by linux_walt; 03-02-2015 at 02:23 PM.
|