The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Login from external page - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Login from external page (/showthread.php?tid=15345)



Login from external page - Printline - Sep 13th, 2016

Hi' There

I am trying to create an external loginform to my formtools page.

I have created a loginform where i send the username and password through POST session and then have a javascript that automatically submits the loginform on my formtools login page.

But i always comes to this page: domain/formtools/?message=notify_no_account_id_in_sessions

External form looks like this:

<FORM action="http://www.printline.dk/webportal/formtools/index.php" method="post" name="login" id="login">
<input name="user" value="" type="text" />
<input name="password" value="" type="password" />
<input name="Submit" id="Submit" type="submit" value="" />
</form>

on the index.php in my formtools i have added this code:

PHP Code:
if((isset($_POST['user'])) && !empty($_POST['user']))
{
    
$username $_POST['user'];    
}
if((isset(
$_POST['password'])) && !empty($_POST['password']))
{
    
$password $_POST['password'];    


on the index.tpl i have added this to the username field and password field:

<input type="text" name="username" id="username" value="<?php echo $username; ?>" />
<input type="password" name="password" id="password" value="<?php echo $password; ?>" />

Can anyone tell me why this is not working, or if anyone has another solution to how i can get an external loginform working...???

Best regards, Printline


RE: Login from external page - alexh - Sep 13th, 2016

Check out the documentation on creating a custom login form:

http://modules.formtools.org/submission_accounts/documentation.php?page=custom_login_forms

http://docs.formtools.org/api/?page=ft_api_login


RE: Login from external page - Nathand - Aug 20th, 2020

To design an external page for the login page you have to know about java scripts to design the forum page. By and large essaypro reviews only use to set the domains and range in JavaScript.