By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,064 Members | 1,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,064 IT Pros & Developers. It's quick & easy.

Image button in PHP

100+
P: 250
I want to add image button in php. But my code is not working. This is my code..

Expand|Select|Wrap|Line Numbers
  1. if(isset($_POST['login'])){
  2. echo "hello";
  3. }
  4.  
  5.  
  6. <input type="image" name="login" value="Submit" src="images/loginBtn.jpg" alt="Ok" />
  7.  
Pls help me..
Jul 22 '11 #1

✓ answered by ghjk

Did it. This is working..
<button type="submit" name="login" style="border: 0; background: transparent; cursor: pointer;">
<img src="http://bytes.com/images/loginBtn.jpg" /></button>

Share this Question
Share on Google+
1 Reply


100+
P: 250
Did it. This is working..
<button type="submit" name="login" style="border: 0; background: transparent; cursor: pointer;">
<img src="http://bytes.com/images/loginBtn.jpg" /></button>
Jul 22 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.