az.brimatel Posted August 17, 2012 Share Posted August 17, 2012 Hi, pls i have a form containing fields for three different users. how can i validate such that it does not write an empty data into my database when a user fill only one of the user fieldsThanks in anticipation Link to comment Share on other sites More sharing options...
birbal Posted August 17, 2012 Share Posted August 17, 2012 you can use http://php.net/empty for that. you may also want to look into thesehttp://php.net/issethttp://php.net/strlen Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now