Can't get data from pulldown menu into $_POST

I tried fixing your html and replaced any dynamically generated values (ie the ‘exam’ dropdown values) with dummy data and did a var_dump on the $_POST variable.

This is what I got:

array(5) {
  ["action"]=>
  string(13) "hauptFormular"
  ["exam"]=>
  string(1) "A"
  ["annual"]=>
  string(4) "2013"
  ["first"]=>
  string(4) "John"
  ["last"]=>
  string(3) "Doe"
}

So I’m getting the value of your ‘annual’ okay.

2 Likes