#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    2
    Rep Power
    0

    Smile Online FAQ's Test


    I am new to the web development - Looking for an Idea, Suggestions or Introductory articles for an online FAQ's Test

    I have to build Quiz-test where each answer is associated with two parameters - When a user chosen an answer then I have to perform some arithmetic operations with the all answered questions associated parameter.
    Last edited by ManiacDan; May 20th, 2013 at 07:58 AM.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Posts
    194
    Rep Power
    76
    Follow the steps below:

    1. Learn HTML
    2. learn css
    3. Learn basic php
    4. Learn session handling
    5. Learn MySQL
    6. Make basic php applications like a login system
    7. Use your gained knowledge to build this quiz system
    8. Congratulate yourself that your a web designer
  4. #3
  5. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,846
    Rep Power
    6351
    Please don't link to or use w3schools, they are terrible and not affiliated with the real w3c.

    Jack's list is missing a step:
    0: Read the new user guide.
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    2
    Rep Power
    0

    Smile


    Is it possible to hold two parameters with each option as shown below and How?

    Q 1. What is the color of the sky?
    A. Red (P=p1, Q=3)
    B. Green (P=p3, Q=-1)
    C. Blue (P=p2, Q=-2)
    D. White (P=p4, Q=1)

    In the above Question - P & Q values are not visible to users (or visitors) but these values must be possessed (or are associated) with that particular answer option.

    How can I code in PHP for holding each answer with two parameters? Any Suggestion?
  8. #5
  9. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,846
    Rep Power
    6351
    Put the criteria in a database (or the session) and look it up by the answer ID, which should be what your form posts.
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.

IMN logo majestic logo threadwatch logo seochat tools logo