473,320 Members | 2,133 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,320 software developers and data experts.

Form Submit quiz

<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...
Jul 19 '05 #1
3 1695


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/

Jul 19 '05 #2
On Sat, 17 Jul 2004 12:24:14 +0300, "Savas Ates"
<sa***@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
Jul 19 '05 #3
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>

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...


Jul 19 '05 #4

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

Similar topics

2
by: shake | last post by:
I have to develop an application sounds like this:- User is allow to access a form (is actually a test/quiz) within a specific time frame, let say 45 minutes. After this 45 minutes, if the user...
2
by: Kuntal Joisher | last post by:
I have a frameset -- which has 3 HTML pages. its something like ----------------------- | main | | | -----------------------
8
by: shandain | last post by:
Ok, I have done this a million times, and I can't get this to work... I hope I am just being an idiot and missing something... but I can't see it... so please call me an idiot and tell me what it...
2
by: kenny | last post by:
I'm making a quiz to be posted on the internet. but I'm facing difficulties in finding a simple timer for the quiz (unlimited timing) which will keep on running regardless to the change of the page...
8
by: VB6Newbie | last post by:
Hi, I have just created an educational children's VB6 quiz program which has 10 questions and plays a sound file for each question. It has a counter to show the question number and the current...
4
by: dac | last post by:
I am quietly going insane on this project. I've never worked on a project like this one before. All my previous sticky forms were for data entry, not editing. I don't know how to display the form...
8
by: kate.white | last post by:
Hi I design and update the internal intranet for an insurance company and have taught myself HTML and asp. I know enough to design feedback forms, use java scripts and can just about submit...
6
by: vb08isgreat | last post by:
Alright, this is how it is. I'm making a quiz game on Visual Basic 2008 Express Edition. There is 25 questions, and each form is one question. I have the splash screen done, and then form one...
3
by: empiresolutions | last post by:
I am building a app that creates quizzes. This is how it goes - - Create Quiz - Provide up to 10 different types of Quiz Results - Give up to 50 Questions - Each Question has up to 10 possible...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
0
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

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.