if(param("fname1")) { if(param("lname1")) { if(param("phone1") ne "" || param("email1") ne "") { if(param("add1") { # MySQL functions here } } } }