Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 25-05-2005, 05:41 PM
masterryzz's Avatar
Novice Webmaster
 
Join Date: Feb 2005
Location: SABAH
Posts: 19
Rep Power: 0
masterryzz is on a distinguished road
Question php form processing and data extraction

Hi there,

I'm so Interested to Learn about PHP and MySQL, and recently I have learnt about form and data processing with PHP Scripting.
I know how to extract and post data entered into an input field in any form, and then let PHP process the data to be displayed on the Web Page.

Actually, I'm talking about Creating and Managing an Online Quiz.
Usually, in an Online Quiz, there are several choices/options for one question at a time, where they can be radio buttons, checkboxes, or a drop-down menu.
So, when any of these buttons checked/selected, the data can be processed, extracted, and posted into a Web Page, right?
I know how to do that, but how about displaying points/marks according to the data entered - in an Online Quiz?

Let's say that a question have three selections which are categorized into i,ii, and iii using radio buttons.
Points for i is 2, ii is 3, and iii is 0.
So that, how can I make PHP process that points and display them for each questions respectively?
And how can I sum up all of the points in that quiz, and also let it being displayed on a Web Page?

Can all of these be done in a single [.php] file without the include/require statement?
And by the way, I'm asking about processing form data using PHP without MySQL... if it's possible.
So, that's why I asked so.

Also, is JavaScript[ <script...> </script> ] needed to do these process?... How?...

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 31-05-2005, 12:24 PM
meowtaro's Avatar
New kid on the block
 
Join Date: May 2005
Location: Kuala Lumpur
Posts: 1
Rep Power: 0
meowtaro is on a distinguished road
Send a message via Yahoo to meowtaro
Hi,

My assumption you gonna display one question perpage.

You can have a hidden textboxt to carry the total mark on every question page. When the user select the answer and click next question the form will send the total mark value to the next page. Then, on the next page you can calculate the mark.

total_mark = total_mark + radio_button_value

All of these you can do in one page if that what you want. All of the question and answer selection you can just put it in array. But i recommend you split the file which process the questions and the file store the questions. Much more easier and clean to manage
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-06-2005, 11:05 PM
masterryzz's Avatar
Novice Webmaster
 
Join Date: Feb 2005
Location: SABAH
Posts: 19
Rep Power: 0
masterryzz is on a distinguished road
Thumbs up Thankx...

Quote:
Originally Posted by meowtaro
Hi,

My assumption you gonna display one question perpage.

You can have a hidden textboxt to carry the total mark on every question page. When the user select the answer and click next question the form will send the total mark value to the next page. Then, on the next page you can calculate the mark.

total_mark = total_mark + radio_button_value

All of these you can do in one page if that what you want. All of the question and answer selection you can just put it in array. But i recommend you split the file which process the questions and the file store the questions. Much more easier and clean to manage
Okay, thankx...
But your explanation is so high-tech...
I am so new to PHP Scripting...
And I hate to learn those Arrays...
Anyway, thanks again...

[ I think I need to learn more on PHP... this year...:-) ]
__________________
***Million Dollar Ideas ***
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
sorting data gundam_seat Website Programming 2 06-08-2005 10:16 AM
Multiple data koisempoi Website Programming 5 06-12-2004 10:51 AM
Need Freelance Webdesigner for form processing Alamit Job Vacancies 1 06-10-2004 12:49 PM
processing incoming email with php Gemp-X Website Programming 4 03-10-2004 01:26 PM
Data Transfer (Bandwidth) ardiles Paid Hosting Discussion Forum 5 02-12-2003 11:21 PM


All times are GMT +8. The time now is 01:02 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61