When the Form is submitted, I can retrieve the DropDown text using $_POST[‘….’]. But I want to get the DropDown value not the display member. How to get it using POST?
When the Form is submitted, I can retrieve the DropDown text using $_POST[‘….’]. But
Share
You probably need to set a
valueattribute to your options, with HTML like this:your
$_POSTarray will contain'foo' => 'bar'.