473,662 Members | 2,622 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automatic Form Submit

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.
Jul 16 '05 #1
2 17845
sh*******@yahoo .com (shake) wrote in message news:<71******* *************** ****@posting.go ogle.com>...
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.


PHP is server side, i.e. once its given the page to the client, its
done with and is no longer running. The only way you can do this is
with JavaScript but that's easily hacked to stop the auto-submit
firing.

I'd approach the problem differently. Put a countdown clock on the
page, using JavaScript or Flash and tell them if they don't submit by
the end their results will be disqualified. You can still have the
auto-submit feature, if you like.

However, when the page is delivered you need to make a note, store the
current time, make a MD5 hash uniquely and embed this in the quiz.
When they submit, compare the hash against the time the form was
submitted and do as necessary.

Ensuring that they haven't cheated is another complex issue though but
depends on how unique your quiz is and if you can identify your
quiztakers uniquely.
Jul 16 '05 #2
Alternatively, you could have each question on its own page, storing
each answer every time the page is submitted. Additionally, you could
calculate how long a person has taken to do the quiz by working out the
time between the first question being served and now. If it is more than
45 minutes then you can reject the answer and the quiz is over.

Paul Liversidge wrote:
sh*******@yahoo .com (shake) wrote in message news:<71******* *************** ****@posting.go ogle.com>...
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.

PHP is server side, i.e. once its given the page to the client, its
done with and is no longer running. The only way you can do this is
with JavaScript but that's easily hacked to stop the auto-submit
firing.

I'd approach the problem differently. Put a countdown clock on the
page, using JavaScript or Flash and tell them if they don't submit by
the end their results will be disqualified. You can still have the
auto-submit feature, if you like.

However, when the page is delivered you need to make a note, store the
current time, make a MD5 hash uniquely and embed this in the quiz.
When they submit, compare the hash against the time the form was
submitted and do as necessary.

Ensuring that they haven't cheated is another complex issue though but
depends on how unique your quiz is and if you can identify your
quiztakers uniquely.


--
MeerKat

Jul 16 '05 #3

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

Similar topics

1
4280
by: Jay Davis | last post by:
We've been using the excellent ClientForms module with urllib2 to read forms, fill them in, and then submit with 'response = urlopen(form.click())'. The process usually works very well. But some forms, which work straightforward in a browser, don't work with form.click(). For instance, in one simple form the response is: "Sorry, this form cannot be posted to from external source."
12
15567
by: Terry | last post by:
I'm trying to automatically submit a form to another ASP page after some <input> fields values are filled by ASP. I know I can do it using javascript, but is there a way to automatically submit the form using VBscript? Terry <% ' ... some asp processing
1
1464
by: jason | last post by:
I suspect I can do this in javascript. I'm currently automatically refreshing the page with the meta code REFRESH in html. Problem is sometimes my form has text. Any way to submit what's already been entered? The server is vb.net (asp.net). I can set the value of the forms back to what they were before the post if I can distinguish between a forced submit and human submit - but that's another issue.
3
4107
by: Fred Geurtsen | last post by:
Hi, My question is how I can send a form without having to push on a submit button? I need to send a form with method post just by loading the hidden textboxes and send them right away. Anyone got the anser? Thx
1
2572
by: Piotr Kurpiel | last post by:
Hi, I am creating a site where I need to refer to another external file (aspx). I create the form and works fine. But as soon as I try to submit the form automatically (with form.submit()) I get an error from the external site. I do not have the code of that site but suppose that my automatic submission does not pass all of the variables. This is how it looks in plain html: <form name="Login" method="post"
10
4184
by: DaveFash | last post by:
Posting variables from an HTML FORM, via the Request.Form function on the receiving ASP page is great. But how can you POST a Form variable to an ASP page -- without a human pushing a Submit button? An ASP page that can decide when to POST and send the Form vaiables, but out without a
1
439
by: grpmangr | last post by:
hi Is ther anyway i can automatically fill out forms and submit them thru java? supposing i hav a normal txt file that contains all data that needs to be filed out into the form, is there anyway i can fill out a form and submit it automatically by providing only the URL of the form and the txt file? thanks Najla
2
1342
by: Gregor Horvath | last post by:
Hi, As I am no expert web programmer I thought I'd better ask the experts if there is a simpler or better solution to my problem than the one I am thinking of. (using TurboGears) The problem ----------- I have a form. Ok. you can submit, validate it etc.
6
3296
by: chazzy69 | last post by:
Ok two questions- First is it possible to replicate javascripts automatic submit with a php function, i want to do this due to the fact we i run a cron job it wont run javascript. Second If the above is not possible i need to transfer information from the intial page to another another .php and acts similar to the php form in that when u hit submit it will post the information to the other .php page and then opens that page. The reason...
0
8432
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
8344
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
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...
0
8764
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8633
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...
0
7367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
2762
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
1993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.