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
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
=====
q2.php
=====
if($_POST["q1"] == "blue") {
$score = 1;
}
else {
$score = 0;
}
?>
.... etc...
end.php
======
$startTime = $_POST["startTime"];
$endTime = time();
$totalTime = $endTime - $startTime;
$score = $_POST["score"];
?>
Your score was echo $score; ?> and you took echo $totalTime; ?> 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
>
>
>
> q2.php
> =====3D
>
>
> if($_POST["q1"] == "blue") {
> $score =3D 1;
> }
> else {
> $score =3D 0;
> }
> ?>
>
>
>
> ... etc...
>
> end.php
> ======
>
>
> $startTime =3D $_POST["startTime"];
> $endTime =3D time();
> $totalTime =3D $endTime - $startTime;
> $score =3D $_POST["score"];
> ?>
>
> Your score was echo $score; ?> and you took echo $totalTime; =
?> =
> 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