isset _post

php - if isset $_POST - Stack Overflow裝傻是不好的唷..    Change it to this: if (isset($_POST["mail"]) && !empty($_POST["mail"])) { echo "Yes, mail is set"; }else{ echo "N0, mail is not set"; } So $_POST is always set, but its content might be empty. Since !empty() already checks whether the value is set, you ca...

全文閱讀

Always Get A Checkbox $_POST Value - Paulund | Tutorials & Snippets大家好~我是紅茶哥ˊ_>ˋ The problem with checkboxes is that if they are not checked then they are not posted with your form. If you check a checkbox and post a form you will get the value of the checkbox in the $_POST variable which you can use to process a form, if it's uncheck...

全文閱讀