Code: Select all
<?php
<?
if ($_POST["name"] == "gavin" && $_POST["pass"] == "socom") {
header('Location: login.php');
} else {
header('Location: nologin.php');
}
?>
?>Moderator: General Moderators
Code: Select all
<?php
<?
if ($_POST["name"] == "gavin" && $_POST["pass"] == "socom") {
header('Location: login.php');
} else {
header('Location: nologin.php');
}
?>
?>Code: Select all
if ($_POST["name"] == "gavin" && $_POST["pass"] == "socom") {
include('not/in/public_html/tree/login.php');
} else {
header('Location: nologin.php');
}next time it might help to get ti right, some people just try to speed through since there's so uch, your link not working might cut back. http://www.bniclan.com/login.php getsThe page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
--------------------------------------------------------------------------------
Please try the following:
If you typed the page address in the Address bar, make sure that it is spelled correctly.
Open the http://www.bniclan.com home page, and then look for links to the information you want.
Click the Back button to try another link.
HTTP 404 - File not found
Internet Information Services
--------------------------------------------------------------------------------
Technical Information (for support personnel)
More information:
Microsoft Support
two: php and code tags. all bb code is good. especially those two. when posting php, always post it in php tags. it makes your code MUCH easier to read: example:CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Code: Select all
<?php
if ($_POST["name"] == "bni" && $_POST["pass"] == "socom") {
header('Location: script/ladders.php');
} else {
header('Location: error.php');
}
?>