MyBB Community Forums

Full Version: Location field
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!
I trying integrating my website registration with forum but i have a little problem.
When i submit values to function register() it return this:
"You did not enter an option for the "Location" field. Please fill in or select a value for this field."

My code:
$info = array(
    'username' => $username,
    'password' => $password,
    'password2' =>  $password2,
    'email' =>  $email,
    'email2' =>  $email2,
    'hideemail' => 1,
    'invisible' => 0,
    'receivepms' => 1,
    'location' => "toruĊ„"
	);

	$register_status = $MyBBI->register($info);

Of course 'location' it is not good field. I dont know what field is correct to location.

Anybody can help Me?
------------------------------------------------------------------
EDIT
Sorry for thread! I find this Big Grin
Solution:

$profile = array(
    	 'fid1' => 'nieznasz',
    	 'fid3' => 'Kobieta'
    );
    
	$info = array(
    'username' => 'nieznasz',
    'password' => 'q3arena',
    'password2' =>  'q3arena',
    'email' =>  '[email protected]',
    'email2' =>  '[email protected]',
    'profile_fields' => $profile,
    'hideemail' => 1,
    'invisible' => 0,
    'receivepms' => 1
	);