Everyone :
I have a site entry page in which the user types their id & password. The FORM sends the data to this page. If the ID and PASSWORD is valid, the user is redirected to the test.php3 page. My problem is that it doesn't work because of the include statement. The include contains the mySQL connect info. If I hard code these variables, which I don't want to do, and remove the include, it works fine. Does anyone have any suggestions on how I can correct or rework this code?
Sincerely,
Dale Williams
<?
include("stuff.inc");
mysql_connect($host, $user, $password);
mysql_select_db($database);
$result = mysql_query("SELECT....");
if (mysql_num_rows($result) > 0) {
header("Location:http://$HTTP_HOST/$DOCROOT/test.php3");
} else {
something else
}
?>