Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Only checked checkboxes are sent to the server.
For example like this:
$arr = $_POST['blabla'];
if (!empty($arr)) {
$message = "<ul>";
foreach ($arr as $el) {
$message .= "<li>".$el."</li>";
}
$message .= "</ul>";
} else {
$message = "ни один чекбокс не был выделен";
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question