Jump to content

if statement is not working...


Hooch

Recommended Posts

Could someone please let me know what is wrong here??

if(strlen($firstname) + strlen($lastname) > 20){//errordie("Too many characters.  Please use an intial for the 1st name.<br>Hit your <b>Back</b> button to save the data,<br>Or <a href=\"admin.html\" target=\"_parent\">click here</a>");}

The entry still goes to the database with 21 characters. Thanks.. Hooch***EDIT*** Sorry, I found my error. All is well...Thanks for looking though :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...