From fa2a70b470bd8433df179b75d29377c6f11e7a3b Mon Sep 17 00:00:00 2001 From: james Date: Thu, 22 Oct 2009 19:28:05 +0000 Subject: [PATCH] Oops use the right phone fields --- register_participants_emergencycontact.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }