Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

validate checkboxes


~Kira

Recommended Posts

Posted

I've added 4 checkboxes with agreements to the create account page. I need to validate them (make sure they are checked) before the customer proceeds to create his account. This should be done with php and javascript, as it is with the other fields. I already have them in place and terms are editable by the admin, which is how the client wants it.

 

I tried making a function check_checkbox, which should have worked! but of course it didn't :(

 

Any help would be much appreciated.

☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆

Posted

I've fixed this myself for the php validation, but if anyone wants to help with the javascript validation of a checkbox, that would be nice. Otherwise, I'll just leave it off. Thanks...

☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆

Archived

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

×
×
  • Create New...