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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validation Show If

Thread began 2/10/2016 3:51 pm by mrobben375515 | Last modified 2/11/2016 12:11 pm by Ray Borduin | 408 views | 6 replies |

mrobben375515

Validation Show If

I have a registration page for my users. If the email already exists in the user file, I want to display the message a message to that effect. However, the regions is showing automatically which makes sense because the user has not filled out the form yet. How do I display this message after the user enters an email into the field and not on the page load?

Sign in to reply to this post

Ray BorduinWebAssist

You should be using Server Validations that comes with Data Bridge, which includes "Unique Value in Database" validation, or "Check new Username" Server behavior that comes with MySQLi Server Behaviors to do this check.

Sign in to reply to this post

mrobben375515

I use Data Assist to create the attached registration page. I am getting the error Call to undefined function WA_Auth_RulePasses(). I am not sure what is wrong. Can you help please? The site is in the pm box.

Sign in to reply to this post

Ray BorduinWebAssist

That is a call to a security assist function and the library require_once() code isn't on the page.

you probably just have to add this to the top of the page:


<?php require_once("webassist/security_assist/helper_php.php"); ?>

Sign in to reply to this post

mrobben375515

I have the page loading now. But I see two new issues now:

FIRST, when I enter an email that is already in the system, I get the following error:

Warning: get_class() expects parameter 1 to be object, resource given in /home/content/05/11651305/html/1to1-silpada/webassist/form_validations/wavt_scripts_php.php on line 654

Warning: Cannot modify header information - headers already sent by (output started at /home/content/05/11651305/html/1to1-silpada/webassist/form_validations/wavt_scripts_php.php:654) in /home/content/05/11651305/html/1to1-silpada/webassist/form_validations/wavt_scripts_php.php on line 85


Second, when I enter a new name successfully, I am getting the following errors:


Warning: get_class() expects parameter 1 to be object, resource given in /home/content/05/11651305/html/1to1-silpada/webassist/form_validations/wavt_scripts_php.php on line 654

Warning: Cannot modify header information - headers already sent by (output started at /home/content/05/11651305/html/1to1-silpada/webassist/form_validations/wavt_scripts_php.php:654) in /home/content/05/11651305/html/1to1-silpada/registration-new.php on line 60

Sign in to reply to this post

Ray BorduinWebAssist

Try updating line 654 of: webassist/form_validations/wavt_scripts_php.php

to:
if (is_object($conn) && get_class($conn) == "mysqli") {

It looks like some code added to make it work with mysqli is causing errors with standard mysql recordsets. I'll get it fixed in the next DataBridge update as well.

Sign in to reply to this post

mrobben375515

Thanks Ray! That solved both issues.

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