what “type” is an option chosen from a select tag

前端 未结 3 1630
孤街浪徒
孤街浪徒 2021-01-25 02:21

I am new to PHP and attempting get the value of an option chosen from a select tag. I am familiar with some types of input such as radio, text, checkboxes e.t.c. my question is

3条回答
  •  萌比男神i
    2021-01-25 02:43

    You need to give the name attribute to the select, not the options.

    Then in php, you can access $_GET['party_type'], which will be the option that was chosen.

提交回复
热议问题