Hello all,
Please refer the following code. ( between the **** lines). The query is written below this.
$checked_id = $HTTP_GET_VARS['checked_id'];
$idarray = $HTTP_GET_VARS['idarray'];
print "<form method=post>";
if (is_array($checked_id))
{
echo '
<TABLE BORDER="1" WIDTH="100%" BGCOLOR="#FFF3EF" ALIGN="CENTER" CELLSPACING=0 CELLPADDING=0 BORDERCOLOR="#FFD8B0">';
$modify_con = 0;
while (list($HTTP_GET_VARS['key'],$value) = each($HTTP_GET_VARS['checked_id']))
{
for ($c=0;$c < count($idarray); $c++)
{
if (ltrim($HTTP_GET_VARS['$idarray[$c]']) == ltrim($value))
{
$sname = ltrim($idarray [$c+1]);
$salter = ltrim($idarray [$c+2]);
$sremarks = ltrim($idarray [$c+3]);
The program flow goes inside the "for" loop. But "if" condition does not get satisified. How to apply "$HTTP_GET_VARS" for the subscript "$c" within the array "idarray" ?
Please let me know whether the method is correct or not? Is there any other way of handling this type ?