0
I have a form with the following structure below:
<?php
//Lógica em php....
?>
<html>
.....
<form method="post" action="">
.....
<input type="submit">
.....
By clicking the Ubmit button the page reloads, running php logic on the server and returning the result to the page itself. However, when reloading the browser (F5 for example) the same question is asked if you want to reload the request. There is a way to prevent the browser from forcing the client to always reload the last request?
Note: I know that there are simple ways to solve this problem, such as using Ajax. But the idea here is to solve this problem without changing the current structure. This is possible?
I didn’t quite understand your question, but if you want to send the form data without updating the page you can do the form Submit in an iframe using target, or use the Jquery ajax, if you want to "keep the form data" while updating the page you can save itlos em cookies em javascript ou em SESSION no servidor(ai vai depende da linguagem que servidor está usando)
– Marcos Brinner