Is there any way to do a form submission where action
, instead of refreshing the page, is submitted to iframe
?
I have seen this somewhere, but I did not know how the magic was done. It was done without Javascript.
Something like:
<form action="/my_page" method="POST">
<input type="text" name="name" />
<input type="submit" value="Submit" />
</form>
<!-- o resultado deve ser exibido aqui, ao invés de atualizar a página -->
<iframe></iframe>
How can I do this?