Jump to content

What Happens to my web page after form is submitted

Recommended Posts

I have created a simple Web Page having a HTML form for the user's name and age details. I had HTML file linked with an asp file that displayed the user's name and age using action attribute xxx.asp. Upon running the code, first web page shows me a form to fill, let it be my page 1 and after finishing the form and clicking on submit button I am redirected to a new web page, consider it as page 2. Now What happens to page 1 after the submit button is clicked, is it stored somewhere or the memory space is freed for page 1. Wanted to know how page 1 works internally.

Link to post
Share on other sites

Page 1 and Page 2 work like standard webpages.

The request is sent from the browser, the server responds with a response fitting the request.

In Page 1, you request the first page, and you get a form back. (As its HTML)

In Page 2, you request it with parameters like name and age, and the server processes any ASP on the page, and then responds with a modified HTML file.

Once the server has sent the output to the browser, the server has finished its part, and actually isn't running any pages.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...