How to refresh page on form submission?

What is the html code for redirecting someone to a page on submission of a form based on what is in the form?

  • Say for istance when someone is going to sign in to a site, how would you redirect them to their personal page based on their user name and password?

  • Answer:

    Assuming you do this on the server side, look for the user name and password in the request collection in you particular language - the variable name will be the names you give them in the input text items on the form. If you are talking client side, have the form call a javascript function on the onclick event, the use a location.replace or location.href method to ship them off.

shakersy... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

You wouldn't... not though HTML at least. JavaScript, or darn near any CGI based, or Server based scripting is what you would need to do something like this.

pogowolf

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.