close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Send multiple/dynamic url parameters after login validation and registration?

Thread began 5/14/2015 11:18 am by info4753 | Last modified 5/18/2015 2:36 pm by Ray Borduin | 647 views | 5 replies |

info4753

Send multiple/dynamic url parameters after login validation and registration?

On the login page I'm validating not only username and passwort but also if the account has been activated. From what I see I can only pass one link to a failed URL like: login.php?failedLogin=1 with one messaged based on the "existence" of failedLogin=1

How do I extend this to more specific error messages by sending dynamic URL paramater based on validation results like this:

Validation Username fails
login.php?failedLogin=1&username=0
Error Message: "Username does not exist"

Validation Password fails
login.php?failedLogin=1&password=0
Error Message: "Password is wrong"

Validation Active User fails
login.php?failedLogin=1&active=0
Error Message: "Account has not been activated yet"

Also on the registration page. How can I send the information that the username already exists when only this is the case?

Sign in to reply to this post

Ray BorduinWebAssist

You can't do this through the url... I think a work around would be to create three recordsets on the page to test for the three conditions filtered by the form post and then remove the failed redirect from the login entirely. Then you can show the messages on the page based on whether a row exists in the recordset filtered by the posted username, password, and both with the active identifier.

On the registration page you can use the Server Validation for "Unique column value" in the WebAssist Server Behaviors for form validation. If you used the wizard to create the page you can just double click on the existing server validation server behavior and edit it to make sure it has unique column validation for that field.

Sign in to reply to this post

info4753

Thanks Ray

I'm trying to filter the recordset(s) with the username login form field (Log_In_group_Username) but that doesn't work. No values are being passed to filter the recordset.

Can you please have a look into the attached file? Thanks

Sign in to reply to this post

s.joiner74419001

Remove the failed redirect... the redirect is clearing out the form values.

Sign in to reply to this post

info4753

This post has been deleted.

info4753

I completly removed the server validation and use sessions and dataset filtering for showing up errors (together with the authentication).

This gives me even the possibility to add detailed messages to a logfile.

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...