Select the list in the form, I know that there is no problem passing the parameter value via message or receiving. But if I also want to pass the id value, is it possible and how? For instance:
<form action="Test.php" method="POST"> <select name="select" id = '1'> <option value="">Select a Status</option> <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> <input type="submit" value="submit"/> </form>
And here is a simple PHP print code:
<?php print_r($_POST['select']); ?>
It can print the value of the selected parameter, but how to change the code if I also want to publish the id value, which is 1. I want to do this because I want the identifier to become a variable to store some numbers. Thanks!
source share