Basically I have a pair of radio buttons displayed (Edit/Delete) and based upon the user's selection of these I want to display a submit button either to submit the edit or submit the deletion to a dB. Here's a snippet of the code that is confusing me ... it's all pretty obviously in PHP tags
Code: Select all
echo "<form action=\"update_gallery.php\" method=\"post\">";
echo "<INPUT TYPE = \"Radio\" Name =\"edit\" value= \"edit\" CHECKED>Edit";
echo "<INPUT TYPE = \"Radio\" Name =\"edit\" value= \"del\" >Delete";
$sel_edit=$_POST["edit"];
Code: Select all
$sel_edit=$_POST["edit"];
{
echo "<input type=\"submit\" value=\"Update Gallery Name\"/>";
} else {
echo "<input type=\"submit\" value=\"Delete Gallery Name\"/>";
}
TIA for your help,
Ken