Results 1 to 3 of 3

Thread: Change submit button to image

  1. #1
    Join Date
    Aug 2005
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Change submit button to image

    I need to change my submit button to an image. I was using :

    Code:
    <input type="button" value="Submit" onclick="ValidateFld()" style="font: Arial; font-size: 9pt; color: #FFFFFF; font-weight: bold; background-color: #660000">
    And I've tried these:

    Code:
    <INPUT TYPE="image" SRC="submit.gif" HEIGHT="30" WIDTH="124" value="Submit" onclick="ValidateFld()">
    <input type=image src="submit.gif" value="submit" onclick="ValidateFld()">
    <INPUT TYPE="image" SRC="submit.gif" HEIGHT="30" WIDTH="124" value="Submit" onclick="ValidateFld()" ALT="Submit Form">
    ... but none of them work... if I submit without filling in a required field, it alerts me but then goes to my thankyou page anyway, and I should get the results via email, but I dont.

    Help
    Last edited by Mozie; 07-30-2008 at 11:25 AM.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    This should be the answer.
    Code:
    <style type="text/css">
    .buttonStyle {
    border: none;
    background: #FFF url('image.png');
    }
    </style>
    <input type="button" class="buttonStyle" value="Button"/>
    Change the highlighted to your image.
    Jeremy | jfein.net

  3. #3
    Join Date
    Aug 2005
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thumbs up

    Thank you so much, it works

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •