The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
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'])) 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. |