Connecting Tech Pros Worldwide Forums | Help | Site Map

Image button in php

Familiar Sight
 
Join Date: Jan 2008
Posts: 199
#1: Jul 14 '09
I'm using image button in php. But it's work only in firefox not in IE.

Expand|Select|Wrap|Line Numbers
  1. if (isset($_POST['submit'])) 
  2.     {
  3.     echo "hello";
  4. }
  5.  
  6. <input  name="submit" value="Submit"  src="Submit.jpg" type="image"  alt="add"   />
  7.  

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,648
#2: Jul 14 '09

re: Image button in php


is there any difference in the HTML mark-up in IE and FF?
Needs Regular Fix
 
Join Date: Sep 2007
Location: Canada
Posts: 274
#3: Jul 14 '09

re: Image button in php


use <a href=""> <img src=""/></a> and try to use java script for the form action. It might solve your problem.
Reply