|
|
| Savas Ates 2004-07-17, 8:55 am |
| <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...
| |
| Martin Honnen 2004-07-17, 3:55 pm |
|
Savas Ates wrote:
> <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>
--
Martin Honnen
http://JavaScript.FAQTs.com/
| |
| Jeff Cochran 2004-07-17, 3:55 pm |
| On Sat, 17 Jul 2004 12:24:14 +0300, "Savas Ates"
<savas@indexinteractive.com> wrote:
><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
| |
| Greg Griffiths 2004-07-17, 8:55 pm |
| just do something like :
<form name="myForm" action="a.asp" method="post">
<a href="java script:document.myForm.submit()"><img border="0"
src="IMAGES/oklar.jpg"></a>
</form>
Savas Ates wrote:
> <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...
|
|
|
|