How to use variable inside $_POST as i have used the following code but it says undefined offset in second line. How can i solve it?
$p = $_GET['cii'];
$selectOption = $_POST[$p];
Below is the code:
echo'<form method ="POST">
<select name="'.$abc[3].'">
<option value="slow">slow</option>
<option value="medium">medium</option>
<option value="fast">fast</option>
</select>
<br>
<a href ="?change&&cii='.$abc[3].'">Click to change</a>
</form>';
$abc[] has some numbers and the select box is made with same name as the number.