Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] How to get the USERNAME from registration in the tpl_general_message file
#1

(This post was last modified: 10-24-2015, 09:13 PM by IeMdev. Edit Reason: Mark as solved )

Hi,
I have an application based on Codeigniter 3, however, the controllers are encrypted with ironcube.

For integration reasons with another app I need to get and store in a session var the 'username' that is submitted when a new account is registered and use this value in the tpl_general_message file that loads with the congratulations message.

In V2 of Codeigniter was was able to achieve this by simply adding to the Form Helper file:
Code:
if(isset($_POST['username'])){
$_SESSION['jamUsername'] = $_POST['username'];
}

However, it does not seem to be working with V3 so now things are broken. There is no value for $_POST['username'] at this point of the process.

Any better ways of getting this value?

Thanks
Reply


Messages In This Thread
[SOLVED] How to get the USERNAME from registration in the tpl_general_message file - by IeMdev - 10-23-2015, 04:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB