if (empty($_POST['repair_number'])) {
        $errors[] = 'You forgot to enter your repair number.';
    } else {
        $rn = escape_data($_POST['repair_number']);
    }

Could someone tell me why I on my form do I keep getting an error that says "You forgot to enter your repair number." when I'm entering a number in that field?

Thanks...

Could you post your whole code please?Thanks.

Maybe the fieldname is wrong. And you need to post your entire code as ryan_vietnow mentioned.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.