Hi
I need better way to my checkboxes in form.php here is code
<h3>Which programming languages should you learn first?</h3>
HTML
<input type="checkbox" name="cb_html" value="HTML"><br>
PHP
<input type="checkbox" name="cb_php" value="PHP"><br>
Perl
<input type="checkbox" name="cb_perl" value="Perl"><br>
Python
<input type="checkbox" name="cb_python" value="Python"><br>
And my form.php code is
#checkboxes
if (isset($_POST["cb_html"])) {
echo "You should learn HTML!";
}
echo "<br>";
if (isset($_POST["cb_php"])) {
echo "You should learn PHP first!";
}
echo "<br>";
if (isset($_POST["cb_perl"])) {
echo "You should learn Perl first!";
}
echo "<br>";
if (isset($_POST["cb_python"])) {
echo "You should learn Python first!";
}
echo "<br />";