/    Sign up×
Community /Pin to ProfileBookmark

SEARCH troubles!!

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” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd“>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<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 || [];
_gaq.push([‘_setAccount’, ‘UA-2047844-6’]);
_gaq.push([‘_trackPageview’]);

(function() {
var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl‘ : ‘http://www‘) + ‘.google-analytics.com/ga.js’;
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

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@Big_O_1_Mar 21.2011 — [B]<form action=""[/B]

Unless you're using AJAX, this form will do nothing. I don't know what all those javascript files are for. Are they handling the form submission?
Copy linkTweet thisAlerts:
@rufus2fussauthorMar 24.2011 — [B]<form action=""[/B]

Unless you're using AJAX, this form will do nothing. I don't know what all those javascript files are for. Are they handling the form submission?[/QUOTE]


This isn't the whole code I just took code from around the search coding.. This was developed in Dreamweaver.. I didn't design it actually, I have just been put in charge of fixing the search function.. Lucky me! To be honest I haven't heard of AJAX.. The javascript files are supposed to handle the submission and forms.. As I mentioned before, this all kinda new to me.. If it helps.. I am also using CSS along with this.. Thanks for the reply!
×

Success!

Help @rufus2fuss spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...