Ok so whenever I code something I tend to do things the looong way.I was hoping someone here could help me shorten thing out. For example I would type:
if(empty($username)) {
die("please enter a username");
}
And I would repeat this several times just to make sure that the form was filled in. What is the correct way to do this? This is just one of the examples. Thanks for your help
if(empty($username)) {
die("please enter a username");
}
And I would repeat this several times just to make sure that the form was filled in. What is the correct way to do this? This is just one of the examples. Thanks for your help
Comment