Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I need to tick one check box at the time


Salvo

Recommended Posts

Hi all

 

From the code below, I can tick one or all, but I need only to forse one or the other....

 

How can I achieve this?

 

thanks

 

<input <?php /* this is to see it it is in the DB */

$run_update=false; // set to false to insert new entry in the DB

if ($customers_group_id_pr) foreach ($customers_group_id_pr as $compare_checked)if ($customers_group_id[$i]===$compare_checked) {echo "checked"; $run_update=true;} ?> size="20" size="20" name="customers_group_id[]" type="checkbox" value="<?php echo $customers_group_id[$i]; ?>"></td>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...