Form Submit quiz

S

Savas Ates

<form action="a.asp" method="get" >



<input type="image" border="0" src="IMAGES/oklar.jpg">


</form>

im usnig this codes to submit form when a user click on oklar.jpg(an image)
... but it submits form ***a.asp?x=6&y=8*** like this.. x and y takes
randomize values... how can i remove x and y variables from my string... if
it cant be possible how can submit a form when a user click my image file...
 
M

Martin Honnen

Savas said:
<form action="a.asp" method="get" >



<input type="image" border="0" src="IMAGES/oklar.jpg">


</form>

im usnig this codes to submit form when a user click on oklar.jpg(an image)
.. but it submits form ***a.asp?x=6&y=8*** like this.. x and y takes
randomize values... how can i remove x and y variables from my string... if
it cant be possible how can submit a form when a user click my image file...

These are not random values but the click coordinates. If you want to
submit the form data use
<input type="submit">
If you need an image there are some choices, with JavaScript
<form name="formName" ...>
...
<a href="#"
onclick="document.forms.formName.submit(); return false;"><img
border="0" src="IMAGES/oklar.jpg" alt="submit"></a>
or in modern browsers
<button type="submit"><img border="0" src="IMAGES/oklar.jpg"
alt="submit"></button>
 
J

Jeff Cochran

<form action="a.asp" method="get" >



<input type="image" border="0" src="IMAGES/oklar.jpg">


</form>

im usnig this codes to submit form when a user click on oklar.jpg(an image)
.. but it submits form ***a.asp?x=6&y=8*** like this.. x and y takes
randomize values... how can i remove x and y variables from my string... if
it cant be possible how can submit a form when a user click my image file...

You're getting the coordinates of the mouse submitted. You don't want
to use an input type of "image" you wnat an input type of "submit".

Jeff
 
G

Greg Griffiths

just do something like :

<form name="myForm" action="a.asp" method="post">
<a href="javascript:document.myForm.submit()"><img border="0"
src="IMAGES/oklar.jpg"></a>
</form>
 

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

Staff online

Members online

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,414
Latest member
GayleWedel

Latest Threads

Top