diff --git a/register_participants_emergencycontact.php b/register_participants_emergencycontact.php index 4014b5a..9a63004 100644 --- a/register_participants_emergencycontact.php +++ b/register_participants_emergencycontact.php @@ -88,7 +88,8 @@ echo mysql_error(); if($u=user_load_by_username($e)) { $u['firstname']=stripslashes($_POST['firstname'][$id]); $u['lastname']=stripslashes($_POST['lastname'][$id]); - $u['phone']=stripslashes($_POST['phone1'][$id]); + $u['phonehome']=stripslashes($_POST['phone1'][$id]); + $u['phonework']=stripslashes($_POST['phone2'][$id]); $u['email']=$e; $u['types'][]="parent"; user_save($u); @@ -97,7 +98,8 @@ echo mysql_error(); $u=user_create("parent",$e); $u['firstname']=stripslashes($_POST['firstname'][$id]); $u['lastname']=stripslashes($_POST['lastname'][$id]); - $u['phone']=stripslashes($_POST['phone1'][$id]); + $u['phonehome']=stripslashes($_POST['phone1'][$id]); + $u['phonework']=stripslashes($_POST['phone2'][$id]); $u['email']=$e; user_save($u); }