homepage Welcome to WebmasterWorld Guest from 54.226.180.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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.
Scotty13




msg:4479792
 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

 

coopster




msg:4481154
 3:13 am on Aug 2, 2012 (gmt 0)

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

Scotty13




msg:4481409
 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