To whom is this concern I have problem,everything works
good my register form,my log in page,my datebase but my log in page doesn’t go where I want,that’s my index page.
http://www.webdesigngroup1999.com/mysqladmin/login.php?op=login that is page where I am going after enter right username and password.But I want to go on my idex.php page.
<?php session_start(); // dBase file include "dbConfig.php"; if ($_GET["op"] == "login") { if (!$_POST["username"] || !$_POST["password"]) { die("You need to provide a username and password."); } // Create query $q = "SELECT * FROM `dbUsers` " ."WHERE `username`='".$_POST["username"]."' " ."AND `password`=PASSWORD('".$_POST["password"]."') " ."LIMIT 1"; // Run query $r = mysql_query($q); if ( $obj = @mysql_fetch_object($r) ) { // Login good, create session variables $_SESSION["valid_id"] = $obj->id; $_SESSION["valid_user"] = $_POST["username"]; $_SESSION["valid_time"] = time(); // Redirect to member page Header("Location: members.php"); } else { // Login not successful die("Sorry, could not log you in. Wrong login information."); } } else { //If all went right the Web form appears and users can log in echo ""; echo "Username: "; echo "Password: "; echo ""; echo ""; } ?>"?op=login I tried to replace with index.php page but I am getting nothing.If anyone can help me right here or over the Skype I will appricate.