Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Jun 2008
    Location
    Cornwall
    Posts
    2,097
    Thanks
    297
    Thanked 12 Times in 12 Posts

    Exclamation changing the default form submit button?

    Hi All,

    is it possible to change the default submit button on a form i have made a button which i would like to use in place of the standard button but im not sure how to do it?

    here is my form element
    Code:
    <input type="submit" name="submit" id="submit" value="Submit" />
    which gives me the grey button

    and here is the link to my button which i'd like to use instead

    Code:
    <img src="/images/gobutton.png" />
    can i use that instead?

    thanks
    Luke

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,858
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    LJackson (05-26-2009)

  • #3
    New Coder
    Join Date
    May 2009
    Posts
    74
    Thanks
    0
    Thanked 7 Times in 7 Posts
    Quote Originally Posted by LJackson View Post
    Hi All,

    is it possible to change the default submit button on a form i have made a button which i would like to use in place of the standard button but im not sure how to do it?

    here is my form element
    Code:
    <input type="submit" name="submit" id="submit" value="Submit" />
    which gives me the grey button

    and here is the link to my button which i'd like to use instead

    Code:
    <img src="/images/gobutton.png" />
    can i use that instead?

    thanks
    Luke
    Use the code below:

    <input type="image" name="submit" src="/images/gobutton.png" >



    Regards.

  • Users who have thanked frankle for this post:

    LJackson (05-29-2009)


  •  

    Posting Permissions

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