Unrealircd (Support Bot) (Quiz) - PHP Code Snippet
Unrealircd (Support Bot) (Quiz)
Platform: PHP
Published Dec 29, 2010
Updated Dec 29, 2010
mIRC Script :
http://www.hawkee.com/snippet/8258/ [index.php]
<title>Support Quiz</title>
<form action="check.php" method="post">
<h1>Operating System</h1>
<select name="os">
<option value="win">Windows</option>
<option value="mac">Mac</option>
<option value="linux">Linux</option>
</select>
<h1>Need Support?</h1>
<select name="ns">
<option value="y">yes</option>
<option value="n">no</option>
</select>
<br /><input value="Get Code" type="submit" />
</form>
[check.php]
<?
$a=$_POST['os'];
$b=$_POST['ns'];
echo "/msg [mircbotname] !v ";
if ( $a == "win" && $b == "y" ) {
echo "codeone";
}
if ( $a == "win" && $b == "n" ) {
echo "codefour";
}
if ( $a == "linux" && $b == "y" ) {
echo "codethree";
}
if ( $a == "linux" && $b == "n" ) {
echo "code6";
}
if ( $a == "mac" && $b == "y" ) {
echo "codetwo";
}
if ( $a == "mac" && $b == "n" ) {
echo "codefive";
}
?>
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.