Click here to Skip to main content
15,886,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm having a little trouble with my account creation form.

first of all, my site is on 'BigCommerce', but they can't help me because i changed the design and they don't deal with design related issues.

The problem is like this: If I fill every textbox with the right information and click submit, everything is just OK. I'm getting transferred to the 'Thank you' page, the new user is added and everything is just fine.

But, If I type something like a wrong E-mail address, Two not-matching passwords, leave some text box blank or something like that and click submit, the form is all blank and I have to start filling the details all over again.

second, I'm getting redirected to another page (with a new and empty form), and the error is written on the top on the form, instead of getting a pop-up message with what's wrong on the same page.

so.. this is the account creation page: ​

http://pastebin.com/pB5mrbtf ​

and the javascript code its redirecting to

http://pastebin.com/gLw5WCEQ

Please help
Posted
Comments
Thanks7872 7-Oct-13 8:32am    
Tag your question properly. That will lead you to more accurate solutions. JavaScript,Validations,Forms are not enough.
SrikantSahu 7-Oct-13 14:42pm    
The javascript code that is written for the validation, should be available to the Account creation page. This could be either by reference or the script block on the page itself.

In the onsubmit the function 'check_create_account_form' is supposed to be called, however if the function is not available to the page or if the function returns true, the form will be posted.

You can check the console and use debug points to verify this,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900