IE doesn't display my site properly...but I can't figure out why :S

Discussion in 'Web Design and Development' started by LastLine, Jun 9, 2007.

  1. LastLine macrumors 65816

    Aug 24, 2005
  2. jng macrumors 65816


    Apr 6, 2007
  3. LastLine thread starter macrumors 65816

    Aug 24, 2005
    I'd rather use the thumbnail by preference, the trouble was I couldn't figure out how to make the thumbnail work in the same way as my button is - here's the code that my button uses

    echo '</tr><tr><td class="photo"><br>'.$trimname.'<br><img src="'.$file.'" alt="'.$file.'"/><p><center><form method="post" action="displaypic.php" class="button"><input type="hidden" name="pass" value="'.$trimname.'.jpg"><br><button>"View</button></form></center></td>';	
    Trouble is I couldn't find a non-button way of passing on the information in the form (the displaypic.php uses the ".$trimname.'.jpg" information in the hidden input to check which photo it's meant to display. Hopefully you'll see what I mean.
  4. hawaiian macrumors member


    In order to get this to work in IE, you'll have to use the <input> tag rather than the <button> tag as far as I know. I don't think that you can get around this.

    If you'd like to make your thumbnail the link, then why not just put anchor tags around the image tag?

    echo '<A href="displaypic.php?'.$trimname.'"><IMG src="'.$file.'" alt="'.$file.'"/></A>';
    I don't know if that exact code will do what it's supposed to do given your variable names and such, but I think it's a start...Also notice that the style of sending information to displaypic.php is no longer a 'post' style, it's a 'query string' now. Up to you in terms of how you want to design it, but that should make your code work in IE as well as any other browser.

    I hope this helps =).

Share This Page