Hello 🙂 ,
I'm making an approval form for a script. Everything is displaying correctly but when I submit, the new members do not get added.
My query displays correctly, here are the problem areas:
FORM:
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\" name=\"approved\" id=\"approved\">";
if ($row['approved']==0){
echo "<td width=\"20%\" height=\"27\" bgcolor=\"#f3f3f3\"><strong>Approve?</strong> <input name=\"approve[$member_id]\" type=\"radio\" value=\"1\" /></td>";
echo "<td width=\"20%\" height=\"27\" bgcolor=\"#f3f3f3\"><strong>Disapprove?</strong><input name=\"approve[$member_id]\" type=\"radio\" value=\"-1\" /></td>";
echo "<td width=\"20%\" height=\"27\" bgcolor=\"#f3f3f3\"><strong>Ignore</strong><input name=\"approve[$member_id]\" type=\"radio\" value=\"0\" checked=\"checked\" /></td>";
}
echo "<input type=\"submit\" name=\"Submit\" value=\"Submit\" />";
echo "</form>";
Processing Script (FULL):
if (!empty($_POST['Submit'])){
if ($_POST['approve']== 1){
echo "New member added!";
}else{
echo "No new members added.";
}
}//end post submit
I realize that no query is being executed... I just want to see New Member added as I don't even see that when pressing submit :/.