programming

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 hie
ASKED: December 17, 2008  5:44 PM
UPDATED: December 17, 2008  8:08 PM

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: <pre><input type=”image” src=”images/log_in.png” alt=”Log In” /></pre>

Also, just a reminder that you should <a href=”http://xkcd.com/327/”>always sanitize your inputs</a>. :-)

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following