This is a custom validator for formit that is supposed to search for key words in the input values and everything seems to be working correctly except for the fact that it wont stop the form from submitting when it returns false and the error log only shows a blank for the value of $ok when it does
Ah yeah you may be right. Do you have any better luck if you return false in the if statement instead of break? Iām not a php expert by any means but I think that the break is only ending the if statement and not the foreach, which means that the $ok var is reassigned, but I could be wrong
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting ā+ New Topicā.