Does your theme have the template file searchform.php?
if,so Can you paste and submit the full code of searchform.php of your theme into a pastebin.com and post the link to it here? see the Forum Rules for posting code and using the pastebin.
or remove “name=”submit” from the submit input button.
I already removed “name=”submit” from my input button 🙂
And I have a template called search-form.php, but I am not using the code from there. This is the code I am using in my sidebar:
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
<input type="text" onblur="if (this.value == '') {this.value = 'Enter keywords...';}" onfocus="if (this.value == 'Enter keywords...') {this.value = '';}" value="Enter keywords..." id="s" name="s" class="field">
<input type="submit" value="Search" class="submit">
</form>
That is strange, with your code with a slight alteration (bloginfo(‘home’) is deprecated) I get “?s=hello”. Are you sure you use the right searchform or template? Check the browser’s source code if “name=”submit” is still in there.
<form method="get" id="searchform" action="<?php echo home_url('/'); ?> ">
<input type="text" onblur="if (this.value == '') {this.value = 'Enter keywords...';}" onfocus="if (this.value == 'Enter keywords...') {this.value = '';}" value="Enter keywords..." id="s" name="s" class="field">
<input type="submit" value="Search" class="submit">
</form>
Hmm, I just checked my source code and “name=”submit” is definitely not there, but I still got “&submit=Search” at the end of my search results URL.
Then I tried a different browser (Safari) and it is gone 😮
This is weird, I just hope it works in Firefox soon (even though I’ve cleared my cache).