Hi, I have created a custom module and I’m facing a insolvable (form me) problem:
I have serveral checkboxs named (delimg1, delimg2, etc..) and in the result part of my script I’m using $_POST["delimg$i"] to check if the variables was sent and in the case I’m using the value.
I’m using something la this :
for ($i=1;$i<=$_POST['totalImg'];$i++){
if (isset($_POST["delimg$i"]) ){
....
}
}
The module is working, BUT when I select less all the chekboxs I have a MODx "Undefined index:delimgNOTSELECTED" alert and I really dont know how to correct my module script.
I initialize all my variables but here I don’t know how to do it because I don’t know how many checkboxs I will have.
It’s the only thing I have to do before my client can use the all site, so I really need help ! Thanks A LOT