Oops use the right phone fields

This commit is contained in:
james 2009-10-22 19:28:05 +00:00
parent 10fa7919c4
commit fa2a70b470

View File

@ -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);
}