473,322 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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>
<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
Jul 19 '05 #1
2 7115
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
"Jack" <ta*****@inextenso.qc.ca> wrote in message
news:YA*******************@read1.cgocable.net...
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

Jul 19 '05 #2
"Jack" <ta*****@inextenso.qc.ca> wrote in message
news:YA*******************@read1.cgocable.net...
.. . .
<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.
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Ryan | last post by:
I currently have two image submit buttons. The code generated looks like so: <input type="image" src="button_in_cart.gif" border="0" alt="Add" title="Add" name="btn_cart" value="buy"> <input...
3
by: Nicolas Keller | last post by:
Hi! I'm used to have Mozilla for testing my PHP sites when I'm coding. The site's nearly finished, now I've made a test with the Internet Exlporer... guess what... failed. The problem: I'm...
4
by: Ice Man | last post by:
Hi all How Can I submit a form by clicking on an image instead of the submit button? Thanks
6
by: Adrian | last post by:
I need to have 2 submit buttons in one form calling the same page. I just need to know which was used. Being able to pass a hidden form input for each would be ideal. How can I do this?? ...
3
by: John Dunlop | last post by:
(Note crosspost and follow-ups to ciwah.) Nicolas Keller wrote in thread "Differences in form handling btw Mozilla and IE?": > The problem: I'm using a form that submit's (POST) its data via...
2
by: Matt | last post by:
In the following code, I have 2 questions regarding submit button with image. 1) Does this code <input type="image" name="populate" src="populate.gif"> behave the same as an HTML submit button...
3
by: libsfan01 | last post by:
Hi all is it possible to onclick of a button in one form submit that form and also submit another form on the same page, both with the same 'action' location? or is it only possible to send one...
4
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all I have the following code: I am trying to use the value of the image button to evaluate what plan the user has chosen, i.e. it request("submit1")="Basic", then the user chose basic plan...
10
by: The Natural Philosopher | last post by:
I am coding up a bit of javascript stuff, and have managed to stumble my way through most of what I want.. But this one has got me stumped. I call submit() and get a javascript error 'Submit...
7
by: Petr Vileta \(fidokomik\) | last post by:
I have a form with few text inputs. Every text input is followed by image type input. In this form I want to have 1 submit button on the top. A problem I want to resolve is: when user type...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.