Jump to content

PHP Check Box Validation


kamal213

Recommended Posts

Hi guys,

 

I am planing to use a 3 checkboxes e.g. (Yes, No, Maybe). Is it possible to make to if a user checks on one box e.g 'Yes' they cannot then check 'No and Maybe' i.e. disable two other boxes if one is selected for example.

 

If its possible I would appreciate your help. Thanks alot

Link to comment
https://forums.phpfreaks.com/topic/244490-php-check-box-validation/
Share on other sites

You wouldn't necessarily need javascript. You could validate server-side that only one checkbox is checked from each group and return an error otherwise. But at any rate, radio button arrays would probably be a better option for that application.

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.