• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

sgi - cubmit and rest button -using graphics

Hi I know there is a way you can switch the ugly submit botton with graphics using the input=src,  but is there a way you can use a graphics for both the submit and reset button?  if so how?
thanks,
arthur
0
vbguy
Asked:
vbguy
  • 3
  • 2
1 Solution
 
mark_papadakisCommented:
Well, actually there is't.
The only thing you can possibly do, is use a <INPUT TYPE=IMAGE ..
to submit and then create the same page but with VALUE="" or VALUE=whatever you like.
The only other way is to use an <INPUT TYPE=BUTTON..and use an  onClick= in order to execute a JavaScript function that would clear the fields, which should be easy.
MarkP
0
 
vbguyAuthor Commented:
Can you give me a sample code to do that reset.

Thanks,
Arthur

0
 
mark_papadakisCommented:
Sure, do you want JScript code or CGI code to do the reset trick?(JScript is better but JScript is not supported by all browsers)
MarkP
0
 
vbguyAuthor Commented:
jscript would be fine ,
thanks for your help!

arthur

0
 
mark_papadakisCommented:
Well, this is not tested but u can try something like
[SCRIPT LANGUAGE=JAVASCRIPT]  (doesn't allow the u know what chars :)

function clearit()
{
      document.myform.mytext.value=""
      document.myform.mypass.value=""
}
[/SCRIPT]

blah blah
[FORM NAME= myform METHOD=POST ACTION=http://myserver.com/cgi-bin/xxxx.cgi]

NAME[BR]
[INPUT TYPE=TEXT NAME=mytext SIZE=40][BR]
PASS[BR]
[INPUT TYPE=PASSWORD NAME=mypass SIZE=10][BR]
..
[A HREF="javascript:clearit()"][IMG SRC=myimage BORDER=0][/A]
[/FORM]

or something like that
 :)
MarkP
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now