if ($attending == "Yes") { if ($bothdays == "Yes") { register_single_person("jhb", $name, $surname, $contact, $email, $company, $designation, $dietary, $other, $attending1, $attending2, $breakone, $breaktwo, $breakthree, $breakfour, $breakfive, $breaksix, $breakseven, $breakeight, $breaknine); } else { register_single_person("jhb", $name, $surname, $contact, $email, $company, $designation, $dietary, $other, $attending1, $attending2, "n/a", "n/a", "n/a", "n/a", "n/a", "n/a", "n/a", "n/a", "n/a"); } } else { register_single_person("jhb", $name, $surname, $contact, $email, $company, $designation, $dietary, $other, "not attending", "not attending", "n/a", "n/a", "n/a", "n/a", "n/a", "n/a", "n/a", "n/a", "n/a"); }