Hi guys,
Any chance of some help with this, I've been looking at it so long that my heads gone.
I have a form, but two submit buttons. I basically want the form to submit depending on the submit button the user chooses. button a to form a, button b to form b.
Here's the code:
if ($action == "Edit")
{
echo"<form action=\"EditContact.php\" method=\"post\">";
}
elseif ($action == "Delete")
{
echo"<form action=\"DeleteContact.php\" method=\"post\">";
}
To make matters a bit worse, I'm using images as submit buttons ('cause it fits with the rest of the site) and I'm sure I've messed up the code here:
echo "<input type=\"image\" border=\"0\" name=\"EditContact &action=Edit\" src=\"Buttons/EditRecord.gif\">";
Thanx in advance...