Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Are the Javascript functions in form_check.js.php used any longer?


uptoome

Recommended Posts

Good afternoon, each.

 

I have made changes to create_account.php, adding additional fields that new customers must complete before creating an account. All of the form/field validation code was added to create_account.php. Then, I noticed that form_check.js.php is included in the page, but as far as I can tell, check_form() is never called. Is form_check.js.php required any longer?

Link to comment
Share on other sites

Good afternoon, each.

 

I have made changes to create_account.php, adding additional fields that new customers must complete before creating an account. All of the form/field validation code was added to create_account.php. Then, I noticed that form_check.js.php is included in the page, but as far as I can tell, check_form() is never called. Is form_check.js.php required any longer?

 

search for: onSubmit="return check_form();"

 

it's usually with the draw form part of the script....

Link to comment
Share on other sites

Ok... bone-headed typo in the alert() I had added to check_form()... the JS is obviously called. aka as fat finger syndrome. Fortunately, it gave me time to realize why the validation happens in two places... because the customer may have disabled JS. Thanks to Rodney for his feedback.

Link to comment
Share on other sites

  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...