How can i make an iframe keep its default submission but after redirect the user to another page. I have heard i need to do this redirection on the server side but do not know what this means.
Below is what i tried but it cancels the default iframe submission and just redirects.
function convert() {
document.location = '/sidingsuccess';
}
with
onSubmit="convert();"
on the iframe code
On the server you can, after your submission is finished, use the
header
function to redirect the page to another page (sayexample.php
) by doing:is that what you're looking for?
Replace your following line:
for this one:
that should do it.
Submit form to hidden iframe.
iframe HTML:
Controller: