This topic is locked
[SOLVED]

 after succesfull registration

8/26/2013 10:18:15 AM
PHPRunner General questions
C
chrispa author

hi , i need after new user succesfull registration field connect to get the value of the id .
i try that
$userdata["connect"] = $_SESSION["id"];
return true;
but nothing was returned
pls help

C
cgphp 8/26/2013

If your intent is saving the connect field value in a session variable, try this code

$_SESSION["connect"] = $userdata["connect"];

return true;
C
chrispa author 8/27/2013



If your intent is saving the connect field value in a session variable, try this code

$_SESSION["connect"] = $userdata["connect"];

return true;



hi thanks
actually i want after registration filed "connect" from table users to get the same value with field id

i.e. users_connect = users_id
thanks in advance

C
cgphp 8/28/2013

In the "After successful registration" event, enter the following code:

CustomQuery("UPDATE your_table_name SET connect = " . $_SESSION["id"] . " WHERE connect = " . $userdata["connect"]);