I have a form sending data via post to the page of itself. I want to refresh the page without sending form data again just like you go to the page initially.As far as I know I can use ajax to do so, but it is quite complicated. And, I am looking for simpler method to do so. I have searched overriding refresh but it is not possible. So, do you have any methods refreshing the page without sending form data again besides ajax?
my code of abc.php:
<html>
<body>
<?php
echo "<form action='abc.php' method='post'>";
if(isset($_POST["edit_u_name"])){
echo "<br><br>name: <input type='text' name='user_name' maxlength='20' value='" . $u_name . "'> <input type='submit' name='confirm_u_name' value='confirm'><input type='submit' name='cancel_u_name' value='cancel'>";
}
else
echo "<br><br>name: ". $u_name. " <input type='submit' name='edit_u_name' value='edit'>";
echo "</form>";
?>
</body>
</html>
When I press the edit button and then refresh, I want go to the page just like directly going to the page initially with sending data of edit button.