Search Bar Help

scamron

New Member
Messages
13
Reaction score
0
Points
0
Okay, I'm having some trouble with my search bar.

Currently, I have a search bar built into my header (see below)
search%20bar.PNG


The bar works fine, but when you enter a query only the URL in the address bar changes.

I want the bar to open up a new page showing the results (just like if you type something into Google).

Any ideas?
 

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
Hmm do you have a live website link we can try (to look at the source code for problems)?
 

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
Hmm it appears you are missing a form action :

HTML:
<div id="search"> 
<form method="get" action=""> 
<fieldset><input type="text" name="s" id="search-text" size="15" /><input type="submit" id="search-submit" value="GO" /></fieldset></form></div><!-- end #search --></div>

The form action tells the server what to do with the submitted query.

The search takes me to /?s=SEARCHTERM which is the format for Wordpress only but not necessarily other scripts.
 
Last edited:
Top