2014-04-14, 11:08 PM
Hello,
I'm working on a php script where i need to access custom profile fields.
This works perfectly once I'm logged in. But without being logged in I can only access variables like username, uid, usergroup etc...
after print_r'ing $user I realized it has more variables while being logged in.
Can anyone help me accessing the custom profile fields?
I'm working on a php script where i need to access custom profile fields.
<?php
$name = $_GET['name'];
$pass = $_GET['pass'];
$user = validate_password_from_username($name, $pass);
$customval = $user['fid5'];
?>
This works perfectly once I'm logged in. But without being logged in I can only access variables like username, uid, usergroup etc...
after print_r'ing $user I realized it has more variables while being logged in.
Can anyone help me accessing the custom profile fields?