Hello guys and PHP Developers. I'm new to programming and have a small problem but i cant find solution. So the problem is that i have one page index.php and dropdown list, when i click the button ,,edit,, with method="post" and action="edit.php" im redirected to edit.php. On the edit.php i like to have the same dropdown list with selected value that i before selected on index.php. Please guys can anyone help me !?
<?php echo "<P>".$_POST['dropdown']."</p>"; ?> <form action="change this to something.php" method="POST"> <select name="dropdown"> <option value="1">First</option> <option value="2">Second</option> <option value="3">Third</option> </select> <input type="Submit" name="Submit"> </form> Code (markup): This is what you can use to get the values of select value, but the principles can be applied to other similar forms as well