diff --git a/register_participants_mentor.php b/register_participants_mentor.php index 72b16c6..124961d 100644 --- a/register_participants_mentor.php +++ b/register_participants_mentor.php @@ -79,7 +79,7 @@ if($_POST['action']=="save") if($_POST['id'][$x]==0) { //only insert if we have a name - if($_POST['firstname'][$x] && $_POST['lastname'][$x]) + if($_POST['lastname'][$x]) { //INSERT new record mysql_query("INSERT INTO mentors (registrations_id,firstname,lastname,email,phone,organization,position,description,year) VALUES (".