lhutton
asked on
Simple Form Validation
I have:
$body=stripslashes($_POST[ 'message'] )."\n\n\nT agline";
and:
if (!$values['message'])
addlisterror($error, 'Please complete the form.');
How do I ensure that 'message' isn't empty? There is an array between these snippets with 'message' => $body
$body=stripslashes($_POST[
and:
if (!$values['message'])
addlisterror($error, 'Please complete the form.');
How do I ensure that 'message' isn't empty? There is an array between these snippets with 'message' => $body
ASKER
That doesn't work. It must still be recognising "\n\n\nTagline".
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
addlisterror($error, 'Please complete the form.');