donkon
02-17-2011, 08:17 PM
I have a slight problem. I put my logo on top of the page and linked it with my url. Below the logo i have a search form. Problem is when you click on the search text field it automatically goes to main page. Somehow the text field is linked with my url.. Please help me out:
<body>
<div align="center">
<div class="header">
<div class="logo">
<h1><a href="http://mysite.com/"><img src="logo.png" /></h1>
<div class="searchHolder">
<div class="left"><form action="search.php" method="get" id="mainform" name="myform">
<input type="text" name="search" class="searchInput" id="searchtext" value="Search here..." />
<input type="submit" class="searchButton" value="" />
So mysite.com shows when i mouse over the search text field and when i press to type in the field it automatically refreshes to mainpage.. How do i do it so that clicking on text field does not refresh page??
<body>
<div align="center">
<div class="header">
<div class="logo">
<h1><a href="http://mysite.com/"><img src="logo.png" /></h1>
<div class="searchHolder">
<div class="left"><form action="search.php" method="get" id="mainform" name="myform">
<input type="text" name="search" class="searchInput" id="searchtext" value="Search here..." />
<input type="submit" class="searchButton" value="" />
So mysite.com shows when i mouse over the search text field and when i press to type in the field it automatically refreshes to mainpage.. How do i do it so that clicking on text field does not refresh page??