Hi there.... well I do have an array of metadata (coordinates) which I want to pass on to the function ; when the check box is clicked..The sample function and array data are as below.. Now my problem is how do I assign one row of array to one checkbox and make them post the data to function upon 'OnClick'... Any ideas?!!! <?php function GetStoreTable() { $arraylen=4; // zero based $i=0; $allValuesPresent=1; if (isset($table)) { foreach ($table as $arr) { if (! isset($arr[$i])) { $allValuesPresent = 0; break; } // Will get overwritten by query if any are missing $qresult[$i]=$arr; $i++; } echo $qresult[0][1]; } } ?> Code (markup): $my_array= array( array(1,'andaman',13.59,94,06.73,92.53), array(2,'AP', 19.87,84.78,12.59,76.45), array(3,'Gujarat',24.72,74.55,20.15,68.35), array(4,'kerala' ,12.75,77.37,08.18,74.86), array(5,'punjab' ,32.46,76.93,29.53,73.87), ); Code (markup):