Hi Guys,
Im making a form and when I process it and remove the "&" and "=" chars I want to check if the user entered any data. Here is the if statement:
if ($formdata{'name'} == "" || $formdata{'username'} == "" || $formdata{'password'} == "" || $formdata{'date'} == "") {
print "No data entered!";
}
It works, but the statement is too long. Are there any shorter ways of expressing the same conditions ?
Im making a form and when I process it and remove the "&" and "=" chars I want to check if the user entered any data. Here is the if statement:
if ($formdata{'name'} == "" || $formdata{'username'} == "" || $formdata{'password'} == "" || $formdata{'date'} == "") {
print "No data entered!";
}
It works, but the statement is too long. Are there any shorter ways of expressing the same conditions ?