Bah!
I'm working on a form. I have some text fields. Once the form is sumitted (via POST) the next script does some error checking. At the moment, the only requirement on these text fields is that they not be empty. However, there's some sort of logic error here that I'm not spotting. I am not receiving any error message. If you guys could take a look at it, I'd be most appreciative.
$error = 0;
$efield = "";
//**** BEGIN FORM VALIDATION ****//
if($_POST["pocname"] == ""){
$error = 1;
$efield .= "Point of Contact -> Name<br />";
}
As I stated, I receive nothing despite the fact that the corresponding text filed was void of any input. I used print_r to display the contents of the $_POST array to verify that fact.
I'm at a loss. I mean, how can that logic be incorrect?
EDIT:
The above code works with <textarea></textarea>... if that helps.