phpbuild12;11018369 wrote:Ohh I just found 1 mistake I made, I used value="" instead name="", as I call them by the value, right?
No, you need the value attribute. The name attribute is for the select element itself. The value attribute is for the corresponding option elements.
So given the HTML you provided, you would get the value by doing something like this:
//Assuming the form has been submitted
$messages = $_POST['messages'];
echo $messages;
If they selected the first option then it would output msg1. If they selected the third option then it would output msg3.