Forum Moderators: mack
<form method="post" action="delete.php">
<select name="OS" SIZE=3>
<?
$dir = "/home/www/juttuffi/gallery/images";
$d = opendir($dir);
$type = array(IMAGETYPE_GIF,IMAGETYPE_PNG,IMAGETYPE_JPEG,IMAGETYPE_BMP);
while($entry = readdir($d))
{
if ($entry!= "." && $entry!= ".." && array_search(exif_imagetype($dir."/".$entry),$type)!== false)
{
echo "<option>".$entry."</option>";
}
}
echo '</select>';
?>
</select>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
as you can see the <form action ="delete.php">
I want to make it so this form has 2 buttons and each button performs a different action, one action is to delete and the other action is to view, so there are 2 actions within the one form can this be done if so can anyone tell me the HTML for it?
Thanks