close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Nothing happens on submit

Thread began 12/04/2018 11:59 pm by balexander389215 | Last modified 12/10/2018 7:16 pm by Ray Borduin | 173 views | 5 replies |

balexander389215

Nothing happens on submit

I created a form did all my bindings but when I click on submit nothing happens. In another forum you suggested changing
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"registration");
}

to

if ($WAFV_Errors != "") {
die($WAFV_Errors);
PostResult($WAFV_Redirect,$WAFV_Errors,"registration");
}

which I did and got the following:

The first time a got a error but decided it might be do to trying to bind something from html editor so I redid the form completely, did the first three bindings and it did redirect me to the correct page on submit but it did not populate the database. I completed the bindings hit submit, this time it took me to a blank page with ,11 at the top. Nothing went into the database. I think I'm closer and I'm not getting any errors to point to but no results either.

If you could possible point me in the right direction it would be appreciated.

Thanks

Brian

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

Ray BorduinWebAssist

The 11 means that your captcha validation failed... the number represents the number of the failed validation at the end of the line like:

$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Registration_group_15_Security_code_2"])?$_POST["Registration_group_15_Security_code_2"]:"")) . "",((isset($_SESSION["captcha_Registration_group_15_Security_code_2"]))?strtolower($_SESSION["captcha_Registration_group_15_Security_code_2"]):"") . "",true,11);



But at this point your page is very cluttered. It looks like you have used a new insert server behavior for each column in your table and have a redirect in each as well. That means only the first one would run, since the page would redirect after. You should delete all but one of the Insert Record server behaviors and bind all of the columns in a single insert.

Sign in to reply to this post

balexander389215

I was wondering whether I was doing it correctly but could not find any information in the tutorials to answer the questions.I did delete all the insert record behaviors but one and made all the bindings through that but still got the same error.

however before addressing that I have other things that need to be addressed first. Looking at it I realize that the passwords will be unencrypted in the database so I tried creating pages with security assist since I'll eventually want user login. However I cannot find any way to modify the form. So to start is there any way to add password security to a form built with CSS Form Builder, or is there a way to modify forms built with the security assist pages?

Thanks

Brian

Sign in to reply to this post

Ray BorduinWebAssist

Yes. You can edit the existing pages by double clicking on the associated server behaviors... such as the user login, insert record for registration, and update record on the user's profile. Then add the encryption that you want to use.

Sign in to reply to this post

balexander389215

Thanks Ray, I appreciate all the help you've given me. I have my form working now. One error I was doing was to add the captcha from the wizard adding a new group, form elements and captcha rather than from security then captcha. That resolved the one problem. the other was that some js on my page was interfering with yours.

Now the important thing is how to add encryption to my passwords as they are added into the database. I can't find anything in server behaviors, or security assist that would add sha1 or any other type of encryption to the passwords.

Searching the forums I did find something. In Server Behaviors, Insert Record, bindings, Password, I clicked on the bolt, changed the code to"
<?php echo WA_SHA1Encryption(((isset($_POST["Password"]))?$_POST["Password"]:"")) ?>

But now when I try it I get:
Fatal error: Call to undefined function WA_SHA1Encryption() in C:\xampp\htdocs\songwriters\registration_full.php on line 44


To further update this, I found a post from 2011 where one of the users included the WA_SHA1Encryption.php file. Once I added that and the require function it works and my passwords are now encrypted.

I now have thiws working, thanks for your help.

Sign in to reply to this post

Ray BorduinWebAssist

If you add encryption from the bindings panel by selecting the "Format" option it should add the include file for you. See the screen shot I've attached.

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