search/display works in ff but not ie

Discussion in 'PHP' started by tony84, Nov 2, 2008.

  1. #1
    tony84, Nov 2, 2008 IP
  2. keyaa

    keyaa Peon

    Messages:
    137
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I might not remember correctly.. but I think the fix is using an input of type "submit" instead of "image" (you can style it to look just the way it does now).. I recall having had the same problem recently.
     
    keyaa, Nov 2, 2008 IP
  3. tony84

    tony84 Well-Known Member

    Messages:
    1,864
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    140
    #3
    could you explain that a little more for me?

    I can do a lot of html but forms im not too good with.

    Actually i have just checked it with the admin section and what your saying would seem to make sense, as that doesnt work in ie either. Thanks for helping me (fingers crossed) have found the problem.

    Could anyone help me with a way of doing it correctly but preferably keeping the same design?
     
    tony84, Nov 2, 2008 IP
  4. keyaa

    keyaa Peon

    Messages:
    137
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    change this
       <input type="image" src="images/search.png" alt="Search" id="search" name="search" value="Search" />
    HTML:
    to this
       <input type="submit" src="images/search.png" alt="Search" id="search" name="search" value="Search" />
    HTML:
    see if it works.

    It might not look exactly the same as before, so you might need to change your CSS afterwards for #search.
     
    keyaa, Nov 2, 2008 IP
    tony84 likes this.
  5. tony84

    tony84 Well-Known Member

    Messages:
    1,864
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    140
    #5
    excellent, it doesnt have the same button but it does work.

    Thank you
     
    tony84, Nov 2, 2008 IP
  6. keyaa

    keyaa Peon

    Messages:
    137
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #6
    As I said, you can style it to look just the same as before, this should give you a start:

    #search {
      width: <image width>px;
      height:<image height>px;
      background:url('<image url>') left top no-repeat;
      border:none;
      cursor:pointer;
    }
    Code (markup):
     
    keyaa, Nov 2, 2008 IP
  7. tony84

    tony84 Well-Known Member

    Messages:
    1,864
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    140
    #7
    thats great,
    thank you for your help
     
    tony84, Nov 2, 2008 IP