Sep 13th, 2016, 1:58 AM
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:
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
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