I have 3 columns for a HTML table. Each row represents an individual data entry and the first two columns are labeled "accept" and "reject" while the third column shows a description of the row.
What I've done is have checkboxes that goes down the first and second column. The user has the option to select all (reject or approve). The problem that I have now is that the user will more than likely select both "reject" and "approve" checkboxes for a particular row which could wreck things.
I couldn't find a PHP function that will compare for duplicates within two arrays because that is how my script is handling "accept" and "rejects". Each "accept" entry is part of the accept array and all the "reject" entries are part of the reject array.
The script will then go through the accept array and validate them then run through the reject. So if a user selects both the accept and reject checkboxes, I will have duplicates and really don't want to code a function to go through the array and perform a comparison if a PHP function exists since it might take a while if the array of rejects and accepts are large for a comparison.
Any suggestions?
Regadrs,
Jonathan Chum
A I S M e d i a , I n c .
"We Build eBusinesses"
3541 Habersham at Northlake, Building E
Tucker, GA 30084
Tel: 678.382.2247 / Fax: 678.382.2471
http://www.aismedia.com / jchum@aismedia.com