Submit Button is now an Image

J

Jack

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>
<Input id=text1 name=text1>
<Input id=submit1 type=submit value=Submit name=submit1>
</Form>

I want to change the standard button by an image, but keep the advantage of
the POST method to pass the parameters to my next page, that is page.asp

How can I do such a thing?

Thanks,

Jack
 
R

Ray at

I think this is what you mean.

<FORM action=page.asp method=post>
<Input id=text1 name=text1>
<Input id=submit1 type=IMAGE scr="image.gif" name=submit1>
</Form>

Ray at work
 
P

Phill. W

.. . .
<FORM action=page.asp method=post>
<Input id=text1 name=text1>
<Input id=submit1 type=submit value=Submit name=submit1>
</Form>

I want to change the standard button by an image, but keep the
advantage of the POST method to pass the parameters to my next
page, that is page.asp

Ray's already given you the important bit, but just something to
watch out for ... you won't be able to use

Request.Form( "Submit1" )

in /processing/ your request any more. Being an image, HTTP won't
send you the value of the button any more, but the X and Y
coordinates where the user clicked on the image, as in

Request.Form( "Submit1.X" )
Request.Form( "Submit1.Y" )

HTH,
Phill W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,136
Messages
2,570,795
Members
47,346
Latest member
Jason Calder

Latest Threads

Top