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>

Hi Friend

Please try the below thing, i don't know how helpful for you...

<html>

<head>
<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>
<style>
.search form{display:block;position:relative;width:425px;margin:0 auto;}

.search input{width:100%;font-size:20px;color:black;padding:3px;margin:0;outline:0;border:1px solid #adadad;background:white url(/images/ui/form/input-textbox-bg.gif) repeat-x;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}

.search input{-moz-box-shadow:0 1px 5px black;-webkit-box-shadow:0 1px 5px black;-o-box-shadow:0 1px 5px black;}

.search a{display:block;position:absolute;right:-3px;top:4px;width:24px;height:24px;background:url(/images/search.gif) 4px 4px no-repeat;}

.logo {display:block;cursor:default;width:261px;height:119px;margin:0 auto 10px auto;background:url(/images/TOR_Logo.png) no-repeat;}

.p {
	font-family:Verdana, Geneva, sans-serif; font-size:12px; color:#FFF; text-align:justify; margin:10px auto 10px auto; width:600px; }
	
</style>
</head>

<body bgcolor="#000000">

<div class="logo"></div>

<div class="search">
<form method="post" action="http://localhost/search.php">
<input autocomplete="off" name="q" type="text">
</form>

</div>
<div id="footer">

<div class="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.

</div>


</div>

</body>


</html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.