Ok, so im making and admin page which requires to deletes entries from databases, and i cant figure out how to pass the id variable of the post to another php file.
echo '<form method="post" action="delete_member_post.php" style="text-align:center;" id="delete_post">';
echo '<p style="text-align:center; font-size:20px;"> <font font-size:20px face="Rockwell" color="#680000"> Select post to delete:</font>';
echo '<select name="delete" form="delete_post">';
for ($z=1; $z<=$text["id"]; $z++)
{
$c=$c+1;
echo '<option value="' . $c . '">' . $c . ' </option>';
}
echo '</select> <br>';
echo '<input type="submit" value="Submit Choice"=>';
echo '</form>';
After the loop in the PHP file im echoing $c (based on how many entries the DB has) and its printing my options.
In the other file im using
$i = $_POST["$c"];
to get the id that had been chosen but all i get is the same error, Undefined variable and Undefined index.
Thanks for your time.