Hey, I am new to this site and rather new to web designing/developing. I am having a problem with my search functionality on a site i’m working on. Every time I click the search button it just goes right back to the same page.. I could spend hours (which I already have) reading into this but I still don’t think I am going to get as far as if I was to ask experienced developers who know HTML coding and CSS. Thanks! Below is the code for the section involving the search function…
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “
<html xmlns=”
<head>
<title>Business Name</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<meta http-equiv=”Content-Style-Type” content=”text/css” />
<link href=”style.css” rel=”stylesheet” type=”text/css” />
<link href=”layout.css” rel=”stylesheet” type=”text/css” />
<script src=”js/jquery-1.3.2.min.js” type=”text/javascript”></script>
<script src=”js/cufon-yui.js” type=”text/javascript”></script>
<script src=”js/cufon-replace.js” type=”text/javascript”></script>
<script src=”js/Myriad_Pro_400.font.js” type=”text/javascript”></script>
<script src=”js/Myriad_Pro_300.font.js” type=”text/javascript”></script>
<script src=”js/Myriad_Pro_italic_300.font.js” type=”text/javascript”></script>
<script type=”text/javascript”>
var _gaq =
_gaq.push([‘
_gaq.push([‘
(function() {
var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
ga.src = (‘https:’ == document.location.protocol ? ‘
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body id=”page4″>
<div class=”tail-top”>
<div class=”tail-bottom”>
<div class=”main”>
<div id=”header”>
<form action=”” id=”form1″><div class=”indent”><div class=”h1″><input type=”text” class=”input” /><a href=”#” onclick=”document.getElementById(‘form1’).submit()”><img alt=”” src=”images/button.gif” /></a></div></div><style type=”text/css”>
/*search bar
#searchbar1 {margin:0px; padding: 0px; }
#search{ /*mess around with the text feild here
#searchsubmit{ /*mess around with the button here
</style></form>
<div class=”indent1″>
<a href=”faq.html” class=”link-1″><em><b>FAQ</b></em></a>
<a href=”education.html” class=”link-1″><em><b>Dental Ed</b></em></a>
<!–<a href=”sitemap.html” class=”link-1″><em><b>SiteMap</b></em></a><a href=”rss.html” class=”link-1″><em><b>RSS</b></em></a> –>
</div>
<a href=”index.html”><img alt=”” src=”images/logo.gif” /></a><br />
To be honest.. I don’t know where to start.. I have tried turning the search into PHP, ASP.. I did some research and was told to try java script.. I dont want a complicated search engine. I want a functional one.. For anyone that helps. Thank you so much!
Tyler