Shiny Grimer
Active member
- Pronoun
- she/her, they/them
I went to the free quiz script part of the site, followed Butterfree's instructions to the letter, but the image won't show up.
I'm using the asp version.
Here is check.asp
The quiz is at www.crittercryptics.com/quiz.shtml
When I am supposed to get my result, no image shows up. The
part just shows <img src="http://www.freewebs.com/crittercryptics/.png"> and I get a broken image.
I really don't know what happened. I'm using GoDaddy for my host which supports ASP.net. I figured ASP and ASP.net were similar enough for the thing to work. Is that the problem?
I'm using the asp version.
Here is check.asp
Code:
<%@ language=JScript %>
<html>
<head>
<title>Critter Cryptics: The Result</title>
</head>
<body>
<% var result;
function check()
{
var question;
var modest;
var outgoing;
var serious;
var notserious;
var result;
var choice;
var modest_outgoing;
var serious_notserious;
question = 1;
modest = 0;
outgoing = 0;
serious = 0;
notserious = 0;
result = "";
modest_outgoing = 0;
serious_notserious = 0;
for (question = 1; question <= 10; question++) {
choice = Request.Form("q" + question.toString());
if (choice == "modest") {
modest++;
}
if (choice == "outgoing") {
outgoing++;
}
if (choice == "serious") {
serious++;
}
if (choice == "notserious") {
notserious++;
}
}
modest_outgoing = modest - outgoing;
serious_notserious = serious - notserious;
if (modest == 0 && outgoing == 0 && serious == 0 && notserious == 0) {
// the user hasn't taken the quiz
result = "oops";
}
else if (modest_outgoing > 0 && serious_notserious > 0 && modest > serious) {
// mainly modest, also serious
result = "earthbound64";
}
else if (modest_outgoing > 0 && serious_notserious > 0 && serious > modest) {
// mainly serious, also modest
result = "pkmnrb";
}
else if (modest_outgoing > 0 && serious_notserious > 0 && serious == modest) {
// serious and modest equally
result = "mother3";
}
else if (modest_outgoing > 0 && serious_notserious < 0 && modest > notserious) {
// mainly modest, also notserious
result = "pkmngs";
}
else if (modest_outgoing > 0 && serious_notserious < 0 && notserious > modest) {
// mainly notserious, also modest
result = "smrpg2";
}
else if (modest_outgoing > 0 && serious_notserious < 0 && notserious == modest) {
// notserious and modest equally
result = "pkmny";
}
else if (modest_outgoing < 0 && serious_notserious > 0 && outgoing > serious) {
// mainly outgoing, also serious
result = "pkmndp";
}
else if (modest_outgoing < 0 && serious_notserious > 0 && serious > outgoing) {
// mainly serious, also outgoing
result = "spm";
}
else if (modest_outgoing < 0 && serious_notserious > 0 && serious == outgoing) {
// serious and outgoing equally
result = "pokemonp";
}
else if (modest_outgoing < 0 && serious_notserious < 0 && outgoing > notserious) {
// mainly outgoing, also notserious
result = "pkmnc";
}
else if (modest_outgoing < 0 && serious_notserious < 0 && notserious > outgoing) {
// mainly notserious, also outgoing
result = "pkmne";
}
else if (modest_outgoing < 0 && serious_notserious < 0 && notserious == outgoing) {
// notserious and outgoing equally
result = "earthbound";
}
else if (modest_outgoing == 0 && serious_notserious > 0) {
// neutral modest/outgoing, serious
result = "smrpg";
}
else if (modest_outgoing == 0 && serious_notserious < 0) {
// neutral modest/outgoing, notserious
result = "pmttyd";
}
else if (modest_outgoing > 0 && serious_notserious == 0) {
// neutral serious/notserious, modest
result = "earthbound0";
}
else if (modest_outgoing < 0 && serious_notserious == 0) {
// neutral serious/notserious, outgoing
result = "papermario";
}
else if (modest_outgoing == 0 && serious_notserious == 0) {
// neutral
result = "pkmnrs";
}
else {
// no result found
result = "oops";
}
}
check();
%>
<img src="http://www.freewebs.com/crittercryptics/<%=result%>.png">
<p>HTML:</p>
<textarea rows="3" cols="25"><a href="http://URL.to.quiz"><img src="http://www.crittercryptics.com/Images/<%=result%>.png"></a></textarea>
<p>BBCode:</p>
<textarea rows="3" cols="25">[url=http://URL.to.quiz][img]http://www.crittercryptics.com/Images/<%=result%>.png[/img][/url]</textarea>
</body>
</html>
The quiz is at www.crittercryptics.com/quiz.shtml
When I am supposed to get my result, no image shows up. The
Code:
<img src="http://www.freewebs.com/crittercryptics/<%=result%>.png">
I really don't know what happened. I'm using GoDaddy for my host which supports ASP.net. I figured ASP and ASP.net were similar enough for the thing to work. Is that the problem?