When I'm trying to submit the form after the client change an option it's shows "Confirm Form Resubmission"
<?php
if (isset($_POST['fix'])) {
header('Location: ' . $_SERVER['HTTP_HOST']);
exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<!-- unnecessary content -->
</head>
<body>
<form method="POST">
<fieldset>
<legend>Confirm Form Resubmission</legend>
<select name="choose" onchange="this.form.submit()">
<option value="1">1st</option>
<option value="2">2nd</option>
<option value="3">3rd</option>
</select>
<button name="fix">Fix</button>
</fieldset>
</form>
</body>
</html>
I test the redirect code in comment when form submitted by button and it's works!
But in this case I want to able submit the form by changing option...