hi I have a table with rows and each row contains a checkbox ( array) and a
record. TD of the checkbox:
echo("<td width=15 bgcolor=#9FD9FF><input type=checkbox name=chkR[] value=".
$chkSessionF[$i] ."></td>");

as you can see the array of checkboxes is called chkR.

When the user clicks a submit button it calls the same
page and the value of the array is received using: $chkR=$_POST['chkR'];
however this variable is doing something weird because if I immediately do:
echo("chk: is array: " . is_array ($chk)); it doesnt display anything, so I
presume it isnt an array, supporting this is also the fact that I try to use
the $chkR in:

        $indReqF = array_diff ($indReq, $chkR)

and everytime i run this statement php tells me that the 2nd argument isnt
an array. What is the reason for $chkR not being an array? I have used the
same code on a different page but instead of it posting to the same page
(like in this example) it posts to another page and works fine !?!?!?!?

can anyone help. this is very strange.
thanx in advance.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to