Hi All
I have a form that i need to validate a certain part of but only if the correct radiobox was checked.
I tried to do it this way:
if (($_POST['grsource'] == "Associate") && (!$_POST['txtassfirst'] | !$_POST['txtasslast'] | !$_POST['txtasscode'])) {
$wrong = "You did not fill in all the Associate fields.";
else
echo "Thanks for entering"
I keep getting the error message, even if i fill in everything, but not if i don't check the radiobox so that part is at least working ok.
Please any help would be appreciated 😕