Trying to do an IF statement for empty fields in a form, but it is not working

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Trying to do an IF statement for empty fields in a form, but it is not working

Hi,

I am working on a validation function that will check that the data entered into a form is valid. At the moment, I am just doing tests to make sure that data is entered into a form. However, with this coding that I have so far, it does not seem to work properly. It is probably something simple (i.e. a missing bracket or something), but I can't see what it is.