I have all ready succeded with validating number, email and message and so on.
My problem now is how do I validate radio/check btn.
Here is how i validate etc Message:
// Validates msg
if (!isset($_POST[$field]) || empty($_POST['message'])) {
$error_msg .= " ";
$fieldStatusMessage = 'style="border:1px solid #F00"';
}
else {
$fieldStatusEmail = '';
}
Would be helpful if someone could explain or show me. I thinks its really close to what im doing now ?
You can do something like below
Example 1
PHP
HTML
Example 2
HTML
PHP
Read more