I am trying to edit a script to add some functionality.
I want to check a form input field and throw an error if it's blank or if it contains anything other than the word "Unlimited" or a number.
Here's a snippit but I know it's not correct:
PHP Code:
$use = $_POST['uses'];
if (!$edtErr) {
if ((!$use)||($use!="Unlimited")&&(!ctype_digit($use)) {
$edtErr = true;
}
Anyone care to help me fix this