homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

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

Msg#: 4479790 posted 9:35 pm on Jul 28, 2012 (gmt 0)

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



WebmasterWorld Administrator coopster us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4479790 posted 3:13 am on Aug 2, 2012 (gmt 0)

Looks like you have invalid attributes there, have you tried to validate your source code?


Msg#: 4479790 posted 8:23 pm on Aug 2, 2012 (gmt 0)

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>

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved