Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7

Thread: Need help!

  1. #1
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    Can someone tell me how to use texts or image as a submit button for a form?
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com

  2.  

  3. #2
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    <input type="image" name="submit" src="submitbuttonimage.gif" width="x" height="y" border="0">
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  4. #3
    Senior Member zionlocke's Avatar
    Join Date
    Jan 2003
    Location
    .: l33t Basement :.
    Posts
    736
    Member #
    483
    Liked
    3 times
    if you ever want to get a quick check on different html tags visit www.willcam.com/cmat/html/crossname.html

    this may not be an official page with w3c, but it will help you in html tags until you become more familiar with them.
    Cheers, zionlocke :chinese:
    Links: Zion Creation | Blog

  5. #4
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    i have tried this tag:
    <input type="image" type"submit" src="imagefile" width="x" heigh="y"> and it works on my browser, but it displays errors in DreamWeaver, ok thank with your help, i will try that, and what about the text, can i use the text as a submit button?
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com

  6. #5
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    Well... you have some errors in your html there it should be:
    <input type="image" name="submit" src="imagefile" width="10" height="5"> And of course change the "imagefile" to whereever your image is and the 10 and 5 to it's dimensions (or leave out). For text, just try a hyperlink that has the javascript for submnitting the form (I don't know it ) so something like <a href="javascript:document.form.submit">Submit</a> Obviously the document.form.submit is most likely wrong - but just go look up the javascript for submiting a form...
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  7. #6
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Try this one.... I like it a lot:
    Code:
    <button onclick="document.forms['form_name'].submit();">
        <img src="image.gif" width="16" height="16" border="0">
    </button>
    Put a transparent gif in there, and it will act like a regular button !! If you're on a mac or win xp, it will even do mouse over and mousedown events for you :-P

  8. #7
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    Thank a lot for that steve! i got it
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:42 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com