5 Replies - 1988 Views - Last Post: 28 October 2002 - 01:12 PM

#1 j4h2e   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 17-September 02

Custom Form Buttons

Post icon  Posted 28 October 2002 - 12:08 PM

Ok..
I want to bring my own submit and reset buttons into a form so I don't have to use the basic grey buttons. I can get the submit button to work, but how do I get the reset button to actually reset the form, all it seams to do is submit the form even with "value="Reset" code on it! What the deal? <_<

Is This A Good Question/Topic? 0
  • +

Replies To: Custom Form Buttons

#2 SoLi   User is offline

  • andydust.com

Reputation: 41
  • View blog
  • Posts: 1,438
  • Joined: 27-January 02

Re: Custom Form Buttons

Posted 28 October 2002 - 12:21 PM

showing us the rest of the code so we can see what ur doing wrong.. would help....
Was This Post Helpful? 0
  • +
  • -

#3 j4h2e   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 17-September 02

Re: Custom Form Buttons

Post icon  Posted 28 October 2002 - 12:29 PM

ok.... :lol:

<form>.............
...................
<input type="image" src="../images/reset_button.jpg" value="Reset" name="reset" width="97" height="25">

<input type="image" src="../images/submit_button.jpg" value="Submit" name="submit" width="97" height="25">
.........................
...............</form>



I guess it is not recognizing the value="Reset" because it subit the form, and does not Reset it......
I also tried value = "Clear" and it still doen't seam to help me :crazy:
Was This Post Helpful? 0
  • +
  • -

#4 gneato   User is offline

  • <title>Untitled Document</title>

Reputation: 0
  • View blog
  • Posts: 1,311
  • Joined: 03-September 01

Re: Custom Form Buttons

Posted 28 October 2002 - 12:31 PM

Image form elements submit the form by nature. You could write a little javascript to clear the form and link it to the reset image.
Was This Post Helpful? 0
  • +
  • -

#5 j4h2e   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 17-September 02

Re: Custom Form Buttons

Posted 28 October 2002 - 12:45 PM

:D
That explains why my submit button works atleast :P
Was This Post Helpful? 0
  • +
  • -

#6 j4h2e   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 17-September 02

Re: Custom Form Buttons

Posted 28 October 2002 - 01:12 PM

nevermind, I got I figured it out :D
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1