It's me again!
$user->setup();
/* globale variablen setzen */
global $phpbb_root_path;
global $phpEx;
global $db;
global $config;
global $user;
global $auth;
global $cache;
global $template;
/* Datei inkludieren die die benoetigten Funktionen beinhaltet */
require($phpbb_root_path .'includes/functions_user.php');
/* Daten in array schreiben */
$user_row = array(
'username' => 'testingo',
'user_password' => md5('testingo'),
'user_email' => 'testing@example.com',
'group_id' => '2',
'user_timezone' => '1.00',
'user_dst' => '0',
'user_lang' => 'de',
'user_type' => '0',
'user_actkey' => '',
'user_dateformat' => 'd M Y H:i',
'user_style' => '1',
'user_regdate' => time(),
);
/* User anlegen */
if($phpbb_user_id = user_add($user_row)){
echo "okay";
}
else
{
echo "nicht O.K!";
}
?>
Now I want to add another file with forms to fill this out. My problem is:How do I get the vars. from the form to this file? Would it work with, for example:
$user_row = array(
'username' => '$_POST[$username]',
(with or without the > ' < ?)or
say:
$_POST[$username] = $username;
$user_row = array(
'username' => '$username',
The idea behind that is, that users of my homepage just have to register one time Hope you can help me!
SicX (: