// Create instance of module handler
$hModule = xoops_gethandler('module');
// Retrieve module object
$module =& $hModule->getByDirname('module_name');
// Will put the name of the module in $module_name
$module_name = $module->getVar('name');
<input type="file" name="userfile" id="userfile" class="formButton" />
if(!$xoopsUser){
redirect_header('register.php',3, $message);
// 'register.php' is the page to redirect to
// 3 is # of seconds to wait before redirecting
// optional 3rd parameter($message) is a message displayed
}
// First you need to get the member handler
$member_handler =& xoops_gethandler('member');
// Next will be to retrieve all of the member objects
$members =& $member_handler->getUsers();
// Next will be to populate the select box with the users
echo ";
foreach($members as $member){
echo "";
}
echo "";