I have started work on a new project and it is basically a database site for the new MMO if you have heard of it SWTOR and basically I need a solution on making it go to the page linking to the text entered into the search bar. So what I mean is I really need it so if you search up something like Lightsaber it will take the user to the page about the Lightsaber.
Here is the code for my index page:
<html> <head> <?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = ''; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $dbname = 'archives'; mysql_select_db($dbname); ?> <font color="White" size="1"> <LINK href="style.css" rel="stylesheet" type="text/css"> <META name="description" content="SWTOR archives is a database packed full of information regarding weapons, equipment and many more items in Bioware's MMO Star Wars: The Old Republic."> <META name="keywords" content="swtor, star wars, archives, jedi archives, star wars archives, jedi, mmo, mmorpg"> <br><br> <center><img src="TOR_Logo.png" width="350" height="150"></center> </head> <body bgcolor="#000000"> <br><br><br><br> <center> <form action="http://localhost/search.php"> <INPUT type="text" size="50"> <br><br> <INPUT type="submit" alt="Search the SWTOR database!" value="Search"> <div id="footer"> <p> This site is in not endorsed by or affiliated with LucasArts, BioWare, or Electronic Arts. Trademarks are the property of their respective owners. LucasArts, the LucasArts logo, STAR WARS and related properties are trademarks in the United States and/or in other countries of Lucasfilm Ltd. and/or its affiliates. © 2008-2010 Lucasfilm Entertainment Company Ltd. or Lucasfilm Ltd. All Rights Reserved. BioWare and the BioWare logo are trademarks or registered trademarks of EA International (Studio and Publishing) Ltd. You may not copy any images, videos or sound clips found on this site or deep link" to any image, video or sound clip directly. Game content and materials copyright LICENSOR. All Rights Reserved. </p> </div> </center> </form> </body> </html>