Using an image as my submit buttom

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Using an image as my submit buttom

    I created a search form in DW 8 and when I use a submit button to display
    results it works fine. However, when I try and insert an image as my submit
    button, the results page isn't taking it.

    How do I use an image as my submit button on a search form?

    rudodoo619 Guest

  2. Similar Questions and Discussions

    1. Using an image to submit a form
      Hi, Simple question I know, but I am having problems getting an image to submit a form, Ive tried using "javascript:document.form1.submit()"...
    2. Image for Submit Button
      hey everyone. i'n building a for in which the data from the fields is inserted into a database table. i'm using an image for my submit button, but...
    3. Can i use a self made image instead of a submit button?
      hi, i want to use a submit button i have created in fireworks. but im having some difficulty getting it to submit data in a form! Can this be...
    4. PHP gives error when using image for submit form!
      Hello, I want use instead of the standard submit-button a image! This don't work, he gives a error on file php4ts.dll, then he is closing the...
    5. Submit Button is now an Image
      Hi, I have a form with input fields and a submit button as following :(don't focus on mistypings if any) <FORM action=page.asp method=post>...
  3. #2

    Default Re: Using an image as my submit buttom

    in your image you can put:

    onClick="document.yourForm.submit()"
    Clukey Guest

  4. #3

    Default Re: Using an image as my submit buttom

    Where at on my image

    <input type="submit" value="search" img src="Images/search.gif" name="submit" id="submit"></label>

    That is what I have for the submit button
    rudodoo619 Guest

  5. #4

    Default Re: Using an image as my submit buttom

    i dont understand the </label> closing tag

    also, you can use an img rather than Button component

    <img src="your image" onClick="document.YourForm.submit()" />
    Instetus Guest

  6. #5

    Default Re: Using an image as my submit buttom

    Is there anything I need to replace

    onClick="document.yourForm.submit()"

    Do I leave it like that or should I put some other values for it?


    rudodoo619 Guest

  7. #6

    Default Re: Using an image as my submit buttom

    replace your image with correct path and yourForm with the actual form name within your document
    Instetus Guest

  8. #7

    Default Re: Using an image as my submit buttom

    so for example if my form's name was search I would type

    <img src="my image" onClick="document.search.submit()" />

    right?


    rudodoo619 Guest

  9. #8

    Default Re: Using an image as my submit buttom

    No. Very wrong.
    <input name="submit" type="image" src="myImage.gif">

    That's the proper way to use an image to submit a form.

    "rudodoo619" <webforumsuser@macromedia.com> wrote in message
    news:durrd7$qv$1@forums.macromedia.com...
    > so for example if my form's name was search I would type
    >
    > <img src="my image" onClick="document.search.submit()" />
    >
    > right?
    >
    >

    Lionstone Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139