hello to all!!
I have a code which edits a USER's record..
when this checkbox is selected, and when EDIT button is click, it will go to confirm.php which checks what checkbox has been selected, then it will redirect to edit.php..
edit.php is for editing the selected record. It should display the USER's Name so that the administrator will know who's user he will edit..
The problem is, I cannot display the USER's Name ..
I'm not sure if i pass the values to the EDIT File correctly for editing..
PHP Code:
if(isset('edit user'))
{
if (isset($_POST['cb']))
{
foreach ($_POST['cb'] as $key => $value)
{
echo"<input type='hidden' name='taskvalue' value='$value'>";
redirect('edit');
};
}
else
{
msgbox("You have not clicked any checkboxes!!!");
redirect(index);
}
}
Also, IS IT POSSIBLE TO PASS THE VALUE OF THE CHECKBOX TO ANOTHER FILE, THEN TO ANOTHER FILE?????
(I have a lot of buttons that directs to confirm.php that is why i use only one form..)
Somebody help please please please!!..
thank u all in advance and God Bless!!