www.webdeveloper.com
Results 1 to 4 of 4

Thread: gif button in forms

  1. #1
    Join Date
    Oct 2008
    Posts
    2

    gif button in forms

    Hello,

    I'm learning on the fly, so please forgive if this question sound a bit dim. I added a contact form to my website yesterday via a free open-source application. I've edited the fields in the output.php file to match my needs, and re-written the html code to fit the layout of my site. Nothing major there. My problem is when I try to apply a gif button to the form to route back to output.php. I haven't managed to figure out the code to activate the gif and allow me to remove the standard forms button. This is really an esthetic issue, but is also important for me to maintain the overall layout of the site. The submitbutton.gif needs to give the same result as the button listed below it to be successful in this project. I've used the value to direct users till I can figure this out.

    <img src="http://www.plecobreeder.com/submitbutton.gif">
    <input type="Submit" name="Submit" value="Use this one" />

    Any Ideas?

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    <input type="image" name="Submit" src="http://www.plecobreeder.com/submitbutton.gif"" alt="Use this one">
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Oct 2008
    Posts
    2
    <input type="image" name="Submit" src="http://www.plecobreeder.com/submitbutton.gif"" alt="Use this one">
    Thanks,

    It's always so much easier once you see it, but I do have a question about the double quotations after the source. I initially tried just typing the code in and got a second button without the image. Then, I copy/pasted the code and it worked perfectly with the only obvious difference being the extra quotation mark, which I don't see opening quotations for. What is the significance of that quotation?

    Thanks again

  4. #4
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Typo, remove the second quote
    Code:
    <input type="image" name="Submit" src="http://www.plecobreeder.com/submitbutton.gif" alt="Use this one">
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles