Hey everyone. I'm iJames, the new guy! And i need HELP! I made a new website, and it's a search engine. I already created all my tables, databases, and index script, but when i hit 'Search' an error message comes up saying something is wrong with the login script. Can anyone fix this? Here are the codes:
<html>
<form action="search.php" method="GET">
<font face="arial" size="5">
<center>
<a href="http://example.com/index.php"><img src="www.example.com/logos/topeke-blue.png">
<input type="text" size="50" name="search"><input type="submit name="submit" value="search">
</center>
</font>
</form>
</html>
Is the Index.PHP
Here is login.php
<?php
require ("connect.php");
$post_username = $_POST['username'];
$post_password = $_POST['password'];
if ($post_username&&$post_password)
{
echo "rest of the code";
}
else
die("username and password required!");
?>
I heard somewhere that you need a connect.php? Can anyone help me????