Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

php trouble


ghost's Avatar
0 0

when i run this as admin.php and hit submit my site goes to www.mysite.com/$_SERVER[PHP_SELF] instead of checking itself, i just learned php today and any help with this would be great.

<?php if ($_POST['user'] == 'admin' && $_POST['pass'] == 'anahacker') print 'LOGIN CORRECT, DATA WILL BE ADDED SOON'; else print ' <form action="$_SERVER[PHP_SELF]" method="post"> ADMIN:<input type="text" value="" name="user" /> <br /> PASS:<input type="password" value="" name="pass" /> <br /> <input type="submit" value="submit" /> </form> '; ?>


ghost's Avatar
0 0

Since you're using echo() to produce HTML source, you're going to want to put backslashes in front of the quotation marks (e.g. <input type=\"text\").