markm5i
asked on
Javascript submission of form with redirect
Should be a fairly easy question, but cannot find anything to work!
I have a simple form on an ASP page that submits to itself with a submit button. Once posted, the ASP code collects the posted data, saves to a DB and then redirects to the next page.
I would also like to place another button on the page that once clicked - will submit the form and then redirect to another page. (a save and logout button)
I figure the only way to do this would be with javascript i.e. javascript: document.forms.formname.su bmit(); window.location = 'page.asp'; but this is not working...any ideas?
I have a simple form on an ASP page that submits to itself with a submit button. Once posted, the ASP code collects the posted data, saves to a DB and then redirects to the next page.
I would also like to place another button on the page that once clicked - will submit the form and then redirect to another page. (a save and logout button)
I figure the only way to do this would be with javascript i.e. javascript: document.forms.formname.su
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Setting additonal parameters in the iframe tag hides it more:
border=0 frameborder=0 scrollbars=0
border=0 frameborder=0 scrollbars=0
Beware you will have no feedback if save fails.
Somthing like this:
Open in new window