View Full Version : Need some help... confusing me.

02-17-2011, 09: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:

<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??

02-17-2011, 09:21 PM
Hello donkon,
It appears you do not close your anchor. You should have a </a> before that closing tag for your heading.

See the links in my signature line about validation. They will help you find little typos like this.

02-17-2011, 09:31 PM
oh wow thank you, this was driving me nuts lol