Hi Kevin,
Hope you can help with this one step..
With your idea i was able to handle errors and determine which the cause maybe..
I just stuck at last step..that when i know that user account already exist, how can i
upgrade the user to add him to another usergroup..
PHP Code:
$newuser->pre_save();
if(empty($newuser->errors)){
$newuserid = $newuser->save();
echo "congratulations you are added <br>
Please note: <br>your username: <b>".$username."</b>
<br>Your Passowrd: <b>".$password."</b>";
}
else(!empty($newuser->errors[0])){
//assumed that user already exist
update usergroup to $usrgrp //usrgrp is an id of the usergroup
echo "email already in use.. please login here";}
Can anyone please point out what the code will be to add user to another usergroup.
i mean the 2nd last line in above code.. i am unsure of exact syntax of the VB/php code here.
Any help in this regard is appreciated.
Thanks!