<?php
//This mod is for v2
// CREATED BY BRAD
include "globals.php";
$filename="response.txt";$words=file($filename);shuffle($words);$word=$words[0];
$question=($_POST['question']);
$ask="
<form action=askghost.php method=POST>Question:
<input type=text name=question>
<input type=submit value=Ask></form>";
print "<h3>I know you</h3>
Welcome to the the ghost home.
Here you can type in a question about anything and the ghost will reveal the answer to you.
";
if ($question=="")
{
print $ask;
$h->endpage();
exit;
}
else
{
if ($question=="$question")
{
switch(mt_rand(1,1)) {
case 1; echo'<h1>'.$word.'</h1>'; break;
}
}
print "<hr />[b]$question[/b]
";
print "
";
print "
[b]";
print "<table width=174 height=156 border=0 cellpadding=0 cellspacing=0>
<tr><td background='title.png'><center>$pic</td></tr></table>
";//Background Pic
print "$ask";
$h->endpage();
exit;
}
$h->endpage();
?>
Now create a txt file called response.txt and add as many outcomes as you want to