itsjoetime251
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by itsjoetime251
-
-
For now, I want the answers to be viewed, and then the answers are deleted when attempting the quiz a second time. Maybe in the future I might consider, but I'm kinda new to HTML.
-
Hi, guys. I have a problem.
I'm trying to create an Eddsworld personality quiz but the results don't show up on the following page.
I'm not using a server to do it, which might be part of the problem.
This is the code for the question page:
<HTML>
<HEAD><TITLE>Questions - Eddsworld Personality Quiz</TITLE></HEAD><BODY BGCOLOR=#006600><FONT COLOR=#FFFFFF FACE="Century Gothic"><BR><BR><BR><CENTER><H1>Questions</H1></CENTER><form method=get action=results.php><BR><BR><BR><H4>Question 1</H4>Which of the following do you prefer?<BR><input type=radio name="prefer" value="edd:coca-cola" checked>Coca-Cola<br><input type=radio name="prefer" value="tom:beer">Beer<br><input type=radio name="prefer" value="matt:your face">Your face<BR><BR><BR><H4>Question 2</H4>Which word below best describes you?<BR><input type=radio name="is" value="edd:funny" checked>Funny<br><input type=radio name="is" value="tom:smart">Smart<br><input type=radio name="is" value="matt:vain">Vain<BR><BR><BR><H4>Question 3</H4>Which colour best suits you?<BR><input type=radio name="colour" value="edd:green" checked>Green<br><input type=radio name="colour" value="tom:blue">Blue<br><input type=radio name="colour" value="matt:purple">Purple<BR><BR><BR><H4>Question 4</H4>When faced with zombies in an underground subway station, what would be your most preferred weapon?<BR><input type=radio name="weapon" value="edd:a shovel" checked>A shovel<br><input type=radio name="weapon" value="tom:bottles of smirnoff">Bottles of Smirnoff<br><input type=radio name="weapon" value="matt:a mop">A mop<BR><BR><BR><H4>Question 5</H4>What do you think is the worst of the following?<BR><input type=radio name="fears" value="edd:a fridge without bacon" checked>A fridge without bacon<br><input type=radio name="fears" value="tom:a life with no eyes">A life with no eyes<br><input type=radio name="fears" value="matt:getting older">Getting older<BR><BR><input type=submit value=Submit></form><BR><BR><BR></FONT></BODY></HTML>This is the code for the results page (so far).
<HTML>
<HEAD><TITLE>Results - Eddsworld Quiz</TITLE></HEAD><BODY BGCOLOR=#006600><FONT COLOR=#FFFFFF FACE="Century Gothic"><H4>These are your results with the "hidden value":</H4>Your preference is similar to: <?php echo $_get["prefer"]; ?><BR>You describe yourself like: <?php echo $_get["is"]; ?><BR>Your favourite colour is like: <?php echo $_get["colour"]; ?><BR>You would fight zombies with a weapon like: <?php echo $_get ["weapon"]; ?><BR>You fear something like: <?php echo $_get ["fears"]; ?></BODY></HTML>Please tell me what I'm doing wrong.
Radio Form Submit Problem
in HTML/XHTML
Posted · Edited by itsjoetime251
I did say that not having a server might be a part of the problem but I didn't know PHP was case sensitive. Thanks for the tip. In that case, what can I do to achieve a similar result?