online exam including time

online exam including time

am 31.07.2007 12:05:50 von php.ajay

Hi
I have a great problem. I have successfully completed
ONLINE EXAM project.But Finally client asked "I want to include time
for my site."O.K I tried But every time when i click on next question
time is also refreshed and it comes from starting time.Please help
me.VERY URGENT
Thank u

Re: online exam including time

am 31.07.2007 12:16:59 von Captain Paralytic

On 31 Jul, 11:05, php.a...@gmail.com wrote:
> Hi
> I have a great problem. I have successfully completed
> ONLINE EXAM project.But Finally client asked "I want to include time
> for my site."O.K I tried But every time when i click on next question
> time is also refreshed and it comes from starting time.Please help
> me.VERY URGENT
> Thank u

Try explaining properly what you are wanting to do and you might get
some help!

Re: online exam including time

am 31.07.2007 14:48:31 von ELINTPimp

On Jul 31, 6:05 am, php.a...@gmail.com wrote:
> Hi
> I have a great problem. I have successfully completed
> ONLINE EXAM project.But Finally client asked "I want to include time
> for my site."O.K I tried But every time when i click on next question
> time is also refreshed and it comes from starting time.Please help
> me.VERY URGENT
> Thank u

Sounds like you are doing a request for each question (one question in
a

, hit submit, the data goes to some sort of persistent or
superglobal storage, and go on to the next). AJAX might be a good
solution to cut down on the overhead, but that's just a suggestion for
a future version =).

If my assumptions are correct about the way your system works, are you
passing the value of the time remaining in your request and then using
that as a starting point for your time?

This is all based on assumption, of course....we would be able to help
better if you posted some code =)

Steve

Re: online exam including time

am 31.07.2007 23:39:36 von nigel_moss

While the city slept, php.ajay@gmail.com (php.ajay@gmail.com) feverishly
typed...

> Hi
> I have a great problem. I have successfully completed
> ONLINE EXAM project.But Finally client asked "I want to include time
> for my site."O.K I tried But every time when i click on next question
> time is also refreshed and it comes from starting time.Please help
> me.VERY URGENT
> Thank u

Assuming as other posters have said that this is a form with a question, and
then onto the next page... maybe something like;

q1.php
=====



What colour is blue?



q2.php
=====

if($_POST["q1"] == "blue") {
$score = 1;
}
else {
$score = 0;
}
?>


"
name="startTime">

How many eggs in a dozen?



.... etc...

end.php
======

$startTime = $_POST["startTime"];
$endTime = time();
$totalTime = $endTime - $startTime;
$score = $_POST["score"];
?>

Your score was and you took to
complete the quiz



.... This is all off the top of my head and not tested in anyway shape or
form, but it may at least give you some ideas to work on.

Hope that helps,
Nige

--
Nigel Moss http://www.nigenet.org.uk
Mail address will bounce. nigel@DOG.nigenet.org.uk | Take the DOG. out!
"Your mother ate my dog!", "Not all of him!"

Re: online exam including time

am 31.07.2007 23:45:02 von luiheidsgoeroe

On Tue, 31 Jul 2007 23:39:36 +0200, nice.guy.nige =

wrote:

> While the city slept, php.ajay@gmail.com (php.ajay@gmail.com) feverish=
ly
> typed...
>
>> Hi
>> I have a great problem. I have successfully completed
>> ONLINE EXAM project.But Finally client asked "I want to include time
>> for my site."O.K I tried But every time when i click on next question=

>> time is also refreshed and it comes from starting time.Please help
>> me.VERY URGENT
>> Thank u
>
> Assuming as other posters have said that this is a form with a questio=
n, =

> and
> then onto the next page... maybe something like;
>
> q1.php
> =====3D
>
>


> " name=3D"startTime"=
>
> What colour is blue?
>
>

>
> q2.php
> =====3D
>
> > if($_POST["q1"] == "blue") {
> $score =3D 1;
> }
> else {
> $score =3D 0;
> }
> ?>
>
>

> "
> name=3D"startTime">
> " name=3D"score">
> How many eggs in a dozen?
>
>

>
> ... etc...
>
> end.php
> ======
>
> > $startTime =3D $_POST["startTime"];
> $endTime =3D time();
> $totalTime =3D $endTime - $startTime;
> $score =3D $_POST["score"];
> ?>
>
>

Your score was and you took ?> =

> to
> complete the quiz


>
> ... This is all off the top of my head and not tested in anyway shape =
or
> form, but it may at least give you some ideas to work on.


Then again, I can easily manipulate hidden post values to my liking, =

without to much trouble even (there are browser extentions that do this)=
..

Want the data safe? Store in on the server, easiest would be in a sessio=
n, =

and use that.

-- =

Rik Wasmus

Re: online exam including time

am 01.08.2007 01:10:45 von nigel_moss

While the city slept, Rik (luiheidsgoeroe@hotmail.com) feverishly typed...

> Then again, I can easily manipulate hidden post values to my liking,
> without to much trouble even (there are browser extentions that do
> this).
>
> Want the data safe? Store in on the server, easiest would be in a
> session, and use that.

Now, session... why didn't I think of that? lol... much simpler... and
thinking about it quite possibly definately the way to choose.

Cheers,
Nige

--
Nigel Moss http://www.nigenet.org.uk
Mail address will bounce. nigel@DOG.nigenet.org.uk | Take the DOG. out!
"Your mother ate my dog!", "Not all of him!"

Re: online exam including time

am 07.08.2007 12:10:28 von pagadalarajesh

On Jul 31, 3:05 pm, php.a...@gmail.com wrote:
> Hi
> I have a great problem. I have successfully completed
> ONLINE EXAM project.But Finally client asked "I want to include time
> for my site."O.K I tried But every time when i click on next question
> time is also refreshed and it comes from starting time.Please help
> me.VERY URGENT
> Thank u

use sessions or cookies to solve this problem

Re: online exam including time

am 07.08.2007 12:11:47 von pagadalarajesh

On Jul 31, 3:05 pm, php.a...@gmail.com wrote:
> Hi
> I have a great problem. I have successfully completed
> ONLINE EXAM project.But Finally client asked "I want to include time
> for my site."O.K I tried But every time when i click on next question
> time is also refreshed and it comes from starting time.Please help
> me.VERY URGENT
> Thank u


other wise contact me i will help. ok
mail id: pagadalarajesh@gmail.com