I'm not getting the results expected when doing an update via onchange="formType.submit()" on a Select List.
I was hoping to have the PHP $_POST value set as a new URL but it looks like the value is not yet present when submitting the form.
Original URL: http://example.com/Select-item.php?type=4
<form action="Select-item.php?type=<?php echo $_POST['selItem']; ?>" method="post" id="formType">
<select name="selItem" id="selItem" onchange="formType.submit()">
<option value="1">change to 1</option>
<option value="2">change to 2</option>
<option value="3">change to 3</option>
</select>
</form>
The error I receive is undefined index (...Select-item.php?type=Notice:%20Undefined%20index:%20...)
Is the correct way to make this page URL update by posting to the same page, reading the $_POST value and then using