close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Problem with DataAssist and ServerValiadion

Thread began 5/22/2012 10:09 am by danny405167 | Last modified 5/22/2012 10:57 am by danny405167 | 836 views | 2 replies |

danny405167

Problem with DataAssist and ServerValiadion

I created a recordset to check for duplicate emails for a registration form. I then used DataAssist to add a single record to my database. Then I added a SA Server Validation to my page to check if security code matches CAPTCHA.

The order in the server behavior panels is as follow:
1) SA Server Validation
2) Recordset
3) Insert behavior

I tested the page and it worked fine. I then added $totalRows_rsCheckEmail to my current SA Server Validation to check for duplicate emails. Now the form will not insert the record to my database, even when I try using an email address that is not in my database.

M' I require to have two SA Server Behaviors? One for checking email duplicates and one for checking Security Code.

Attached Files
registration.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the code order:

1) SA Server Validation
2) Recordset
3) Insert behavior


needs to be:
1) Recordset
2) SA Server Validation
3) Insert behavior


the problem is that you are using the $totalRows_rsCheckEmail variable in the server validation, before it has been created.


with the code in the current order:
1) SA Server Validation - uses $totalRows_rsCheckEmail varaibel
2) Recordset - creates $totalRows_rsCheckEmail varaible
3) Insert behavior

you can see that the $totalRows_rsCheckEmail variable is being used before it is created.


the recordset needs to come first so that the $totalRows_rsCheckEmail variable exists when the Server validation code tries to use it.

Sign in to reply to this post

danny405167

Thanks for the fast response. Form is working great now.

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