Problem that I can't see...
Posted: Thu Mar 13, 2003 6:09 pm
Hello, I am making a simple form/login type thing and I have a line that i just added but it makes none of my other chunks of scripts work. Here it is in full:
The line that I added is this, and after I had added it, the script didnt work right.
Thanks in advance
Code: Select all
<HTML>
<HEAD>
<TITLE>.: Processing :.</TITLE>
</HEAD>
<BODY>
<?php
$name = $_POSTї'username'];
$pass = "none";
$cool = array( "Shurik'n", "Random", "Thug_Wigga", "Tracer" );
global $pass;
if ($_POSTї'username'] == "$name" && $_POSTї'password'] == "$pass") {
print "Welcome $name, please have a look around..at the nice white blank site.";
print "<br>";
}
elseif ( $_POSTї'password'] == "" ) {
print "Please enter a god darned password...retard.";
}
elseif ( $_POSTї'username'] == $name && $_POSTї'password'] != $pass ) {
print "Sorry bud, your password is incorrect."
}
else ($name != $cool ) {
global $cool;
print "Go away unless you are $coolї0], $coolї1], $coolї2], or $coolї3]";
}
?>
</BODY>
</HTML>Code: Select all
elseif ( $_POSTї'username'] == $name && $_POSTї'password'] != $pass ) {
print "Sorry bud, your password is incorrect."
}