How to POST empty <select .. multiple> HTML elements if empty?

后端 未结 8 1904
醉酒成梦
醉酒成梦 2021-02-18 18:09

I have the following multi-select box in a HTML form, where user can select one or more option.


Then check:

if (!isset($_POST['eng_0']) && isset($_POST['eng_0_exists']))
    $_POST['eng_0'] = array();

提交回复
热议问题