Re: [PHP] Problem with Adding info into an array

2003-07-22 Thread Marek Kilimajer
Phillip Blancher wrote: if($array[0]=="") { $array[0]="0"; } else { } if($array[1]=="") { $array[1]="0"; } else { } if($array[2]=="") { $array[2]="0"; } else { } if($array[3]=="") { $array[3]="0"; } else { } if($array[4]=="") { $array[4]="0"; } else { } if($array[5]=="") { $array[5]="0"; } else

Re: [PHP] Problem with Adding info into an array

2003-07-21 Thread CPT John W. Holmes
> I have 7 checkboxes, which make up the array information. I currently use > implode to make the array, however that array only consists of the > information that it checked. > > What I need to do now is make it so the array will always be 7 items, but if > there isnt a checkbox for the item, I wa