I am building my files in Notepad++ and running them through Apache & MySQL via XAMPP on port 8080 and 3306 respectively. I am fully able to logon to localhost:8080 and PHPmyAdmin but I cannot logon to any of the files themselves like "localhost:logon/index.php" when I attempt that it sends me to a google search page or is unable to connect to the server at all depending on the file. I tried several things to give me access and they either removed all access to localhost or had no effects at all. I guess getting the google search page is progress. I really need to be able to see the actual results of these pages. I've scanned all of the posts for PHP here with no luck and googled several other options prior to posting. Here's the code for the small file mentioned above:
<?php
session_start();
$_SESSION;
$user_data = check_login($con);
?>
<!DOCTYPE html
<html>
<head>
<title>Java Hobbit</title>
</head>
<body>
<a href="logout.php">Logout</a>
<h1>This is the index page</h1>
<br>
Hello, Username.
<style>
#text{
font-family: sans-serif;
font-size: 16px;
color: #660066;
width: 100%
}
#button{
padding: 10px;
width: 100px;
color: #660066;
background-color: #c4d3ca;
border: none;
}
#box{
background-color: #d2b4da;
margin: auto;
width: 300px;
padding: 20px;
}
</style>
<div id="box">
<form method="post">
<div style="font-size: 20px; margin: 10px;">Login</div>
<input id="text" type="text" name="user_name"><br><br>
<input id="text" type="password" name="password"><br><br>
<input id="button" type="submit" value="Login"><br><br>
<a href="signup.php">Click to Signup</a><br><br>
</form>
</div>
</body>
</html>
enter code here