Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Array!! Pls Help

Status
Not open for further replies.

Forri

Programmer
Joined
Oct 29, 2003
Messages
479
Location
MT
Hi all

I'm receiving an array of checkbox items from an html! the problem is that if i tick the 2nd and the 4th checkbox and post the form an error is given. this is due to my function:

Code:
$OBJECT = $_POST['FRM_CHECKBOX'];

for ($a=0;$a < count($OBJECT); $a++)
{
  $ID = $OBJECT[$a]    <- error

  etc...
}


i know why the error is given but i would like to know if i can check if the current pointer in the array is not enbled?

Tahnks
Nick
 
Sorry i fixed it!

Thanks anyways
Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top