Nov 9th, 2010, 9:08 PM
Hi Printline,
Sorry! There's always a million things to do around here!
Cool, so since the user just logged in, information about their account is in sessions.
1. On your form page, make sure that sessions have been started. (session_start()).
2. As a test, add this line to your form somewhere:
If everything is working, it should output the client ID. If it does, just delete it.
3. Next, we're going to use that ID to get all the client info:
You can then use that information to populate your form.
Any help at all?
- Ben
Sorry! There's always a million things to do around here!
Cool, so since the user just logged in, information about their account is in sessions.
1. On your form page, make sure that sessions have been started. (session_start()).
2. As a test, add this line to your form somewhere:
PHP Code:
Client ID: <?php echo $_SESSION["ft"]["account"]["account_id"]; ?>
If everything is working, it should output the client ID. If it does, just delete it.
3. Next, we're going to use that ID to get all the client info:
PHP Code:
<?php
$account_info = ft_get_account_info($_SESSION["ft"]["account"]["account_id"]);
print_r($account_info);
?>
You can then use that information to populate your form.
Any help at all?
- Ben