By PHP (Sessions, Arrays, UserDefined Functions)
Please, I need to create a Personality Test consisting of at least three questions, one question per page. Here is an example of what the first page might look like this photo below :
When the user clicks continue, they will see an error if they did not make a selection:
When the user properly enters their information and clicks continue they will go to the next question page:
then, when the user click continue they will either see the error or advance to the third page:
When the user has finished answering questions, they should see a summary of their results and their diagnosed personality. The data is passed to this page using Sessions.
Here is a sample diagnosis. Feel free to come up with your own:
As are worth 1 point, Bs are worth 2 points,
Add all the points together, and then give them the mapped personality: Score | Personality |
3 or Less | You are a Frog |
Between 4 and 6 | You are an Ant |
Between 7 and 9 | You are a Donut |
Greater than 9 | You are always hungry |
Personality Test Time to find out more about your personality. When completing your personality test, remember to select the first option that comes to your head. Don't overthink it ;-) 1) When you see a chicken what is your first reaction? Wonder why she's not crossing the road I better get out of here Start making clucking noises Think about how it tastes continue Personality Test Time to find out more about your personality. When completing your personality test, remember to select the first option that comes to your head. Don't overthink it ;-) 1) When you see a chicken what is your first reaction? * pick one Wonder why she's not crossing the road I better get out of here Start making clucking noises Think about how it tastes continue Personality Test Time to find out more about your personality. When completing your personality test, remember to select the first option that comes to your head. Don't overthink it ;-) 2) How many times do you brush your teeth per day? What's brushing your teeth? I brush them most days N continue Personality Test Time to find out more about your personality. When completing your personality test, remember to select the first option that comes to your head. Don't overthink it ;-) 3) When you look at the clouds what do you see? I don't it hurts my eyes Seattle Little Characters Stop asking me stupid questions continue Personality Test Question Results Answer 2: d Answer 3: d Answer 4: C Total Score 11 Personality Type You are always hungry! Personality Test Time to find out more about your personality. When completing your personality test, remember to select the first option that comes to your head. Don't overthink it ;-) 1) When you see a chicken what is your first reaction? Wonder why she's not crossing the road I better get out of here Start making clucking noises Think about how it tastes continue Personality Test Time to find out more about your personality. When completing your personality test, remember to select the first option that comes to your head. Don't overthink it ;-) 1) When you see a chicken what is your first reaction? * pick one Wonder why she's not crossing the road I better get out of here Start making clucking noises Think about how it tastes continue Personality Test Time to find out more about your personality. When completing your personality test, remember to select the first option that comes to your head. Don't overthink it ;-) 2) How many times do you brush your teeth per day? What's brushing your teeth? I brush them most days N continue Personality Test Time to find out more about your personality. When completing your personality test, remember to select the first option that comes to your head. Don't overthink it ;-) 3) When you look at the clouds what do you see? I don't it hurts my eyes Seattle Little Characters Stop asking me stupid questions continue Personality Test Question Results Answer 2: d Answer 3: d Answer 4: C Total Score 11 Personality Type You are always hungry