#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2011
    Posts
    47
    Rep Power
    4

    A Working Enter Button, but no image, just a square white box.


    I'm trying to use image locaenterbutton.jpg for an enter button and on page when I test it in my browser, I just see a white box.

    What 'am I missing?

    This is my entry below.

    <td><input name="myBtn" type="locaenterbutton.jpg" src="Custom Image Button Src Goes Here" width="88" height="436" style="width:88px;height:36px;padding:1px;margin:0px;border:none;" onClick="javascript:ajax_post();"></td>

    Thanks, Scott
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,921
    Rep Power
    1045
    Hi,

    Originally Posted by Scotty13
    What 'am I missing?
    This is simply not HTML. There's an input type="image" and a "button" element, but what you've wrote down doesn't exist.

    By the way, this has nothing to do with PHP.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2011
    Posts
    47
    Rep Power
    4
    This worked for me. I hope it helps someone else.

    <input name="myBtn" type="image" style="width:88px;height:36px;padding:1px;margin:0 px;border:none;" onclick="javascript:ajax_post();" src="/root/images/locaenterbutton.jpg" align="middle" width="88" height="436"/></td>

IMN logo majestic logo threadwatch logo seochat tools logo