473,657 Members | 2,567 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1708


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="docume nt.forms.formNa me.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***@indexint eractive.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="javascrip t:document.myFo rm.submit()"><i mg 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
17845
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 has not yet click the submit button to submit the form, the system need to automatically submit it. So, can anyone teach me how to check the time out as well as how to make the form submit automatically? Thank you very much.
2
3984
by: Kuntal Joisher | last post by:
I have a frameset -- which has 3 HTML pages. its something like ----------------------- | main | | | -----------------------
8
1982
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 is... <code> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <title>Online Orientation Quiz</title> <meta http-equiv="Content-Type" content="text/html;
2
3426
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 throughout the quiz. And well how to display the result of the quiz and te grade of the person who has taken the quiz....
8
1297
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 score. At the end it displays the wrong answers and shows the correct solutions. Basically it's working really well though I doubt the code is elegant because it's my first app and I'm teaching myself. Having completed the 10 question quiz which sits...
4
2994
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 with data from the database, allow the user to update it, and then display the form again with POST data. I can get the data out of the database and get the user updates back into the database, but how do I get the filled-out form back to the user...
8
1781
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 information to a databse but i dont know how to create a script to calculate a score of a quiz i have created. I can submit the information via e-mail using arial buttons to detrmin whether the answer is 'correct' or 'incorrect' but now i am wanting...
6
2577
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 loads. i want it so that when the user clicks the button with the correct answer, a message box appears saying: "Correct!" And then a little bit of information about the question. the the next form pops up when the user click OK. Please help!!!!
3
2212
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 Answers. - Each Answer is assigned a Weighted value.... for each type of Quiz Result. - Weighted values are in the range of -6, 0, +6. - Each Quiz will also apply the same Weight range for if a M/F is taking and what of 6 age groups the taker is...
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6163
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.