Make .png image function as a button in PHP

50 pts.
Tags:
PHP
How can I make .png image function as a button in PHP when clicked. I tried this code but didnt work:
<img src="images/log_in.png" align="middle" name="ok" /> <?
$name = $_POST['name'];
$pass = $_POST['password'];
if (isset($_POST["ok">))
{
echo"hie";
}
?>
But when I click the button I created using fireworks its not printing this.

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you just want the image to act like a button to a form, you can just use: <input type="image" src="images/log_in.png" alt="Log In" />

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: