Hello everyone,
I have a form generated by the database (PHP, Postgresql). It displays every client with a checkbox (either checked or unchecked) after the name. The client has to be approved by an admin. The admin approves or uncheck the approve checkbox. After submitting, the database must be updated to reflect the changes made by the admin. Here is the 1st page :
while($row2 = pg_fetch_array($result1))
{
echo "$row2[f_name]". " ";
echo "$row2[l_name]". " ";
echo "<input type='checkbox'";
if ($row2[approved]=='t')
{
echo " value=1 checked ";
}else{
echo " value=0 ";
}
echo "name='app[$row2[client_id]]'></input></td></tr>";
}
How do I loop through the form on the 2nd page to insert into a postgresql DB and to match the client_id with the checked value (either checked or unchecked). The first page is working fine.
Thank in advance
I have a form generated by the database (PHP, Postgresql). It displays every client with a checkbox (either checked or unchecked) after the name. The client has to be approved by an admin. The admin approves or uncheck the approve checkbox. After submitting, the database must be updated to reflect the changes made by the admin. Here is the 1st page :
while($row2 = pg_fetch_array($result1))
{
echo "$row2[f_name]". " ";
echo "$row2[l_name]". " ";
echo "<input type='checkbox'";
if ($row2[approved]=='t')
{
echo " value=1 checked ";
}else{
echo " value=0 ";
}
echo "name='app[$row2[client_id]]'></input></td></tr>";
}
How do I loop through the form on the 2nd page to insert into a postgresql DB and to match the client_id with the checked value (either checked or unchecked). The first page is working fine.
Thank in advance