Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image submit button using CGI.pm shortcut method 1

Status
Not open for further replies.

rdyoll

Technical User
Aug 11, 2003
39
US
Hi, just wondering if there is a solution for using an image for a submit button using the HTML shortcut. I've tried it using a background image, but not the way you can do it using a regular image and regular syntax:
<input type=&quot;image&quot; src=&quot;the_image.gif&quot;>,

but, this is the only way I could come up with using the CGI.pm shortcut method...

print $q->submit({ -name => 'the_name',
-value => '',
-style => 'background-image:url(the_image.gif);width:100px;height:24px' });

...is there another way...?

Thanks


 
...well, I saw that in CGI.pm, but really I was looking for a submit button(IS THIS EQUIVALENT TO A SUBMIT?)...it does &quot;seem&quot; to submit...
 
...philote, yes, it works fine...I can't believe I was confused... I just had it in my head it needed to be a submit...thanks for the links...

...a star for you for explaining what I knew, but it was just not sinking in...hehe...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top