close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to add input binding to login form

Thread began 2/18/2014 8:27 pm by JBWebWorks | Last modified 2/20/2014 10:56 pm by Jason Byrnes | 632 views | 7 replies |

JBWebWorks

How to add input binding to login form

have a login form with a user name field (email address) and 2 password fields (password and ID from a recordset on the page the login form will redirect upon successful login.
I want the login text fields to maintain the input the person entered when they may have put in incorrect information and fail the login, kind of like a validation binding.

Sign in to reply to this post

Jason ByrnesWebAssist

you will need some hand coding for this.

create a recordset to look up the entered username, another to lookup the entered password.

add a set session value behavior to store the username if the username record is not empty.

add another for the password if the password recordset is not empty.

use those session to populate the text fields.

if you need help configuring this, I suggest a premiere support appointment:
http://www.webassist.com/premier_request.php

Sign in to reply to this post

JBWebWorks

Jason,

when you create the recordset for the entered username, does it lookup the username from a db table? If so, how does the entered username get inserted into the db table?

Sign in to reply to this post

Jason ByrnesWebAssist

"when you create the recordset for the entered username, does it lookup the username from a db table"

yes, the idea is to create a recordset that looks up the entered username to see if it exists in the table

"how does the entered username get inserted into the db table?"

when the user registers, it stores the user name in the table


if you need help configuring this, I suggest a premiere support appointment:
http://www.webassist.com/premier_request.php

Sign in to reply to this post

JBWebWorks

trying to understand the need for recordset since the login customer information (email and password) is already in a table which the authenicate user behavior looks up in order to pass the login.

Sign in to reply to this post

Jason ByrnesWebAssist

the authenticate user behavior doesn't save the user name and password on login, by default it will only save the userID on login success, but you aren't asking about login success you are asking about login failure.

since you want to maintain the user name and / or password in the form if login fails but one of them where correct, you need to lookup whether they where correct using a recordset, then save into a session variable.

Sign in to reply to this post

JBWebWorks

thanks Jason.
Ok I understand that.
Can't I use the same table with the username and password for the lookup recordset? And the recordset sql would have a variable like
WHERE login.username = var1
and var1 is $_POST['username']

and then the session for username would be the username from the recordset
and then the value of the textfield, username would be the session?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, that is correct.

if you need help configuring this, I suggest a premiere support appointment:
http://www.webassist.com/premier_request.php

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...