Forums

[resolved] Search form doesn't work (3 posts)

  1. logokala1
    Member
    Posted 3 years ago #

    Hi,
    I use Blue Zinfandel WordPress Theme for my blog (www.frenchohlala.com) and the search engine in sidebar doesn't work.

    Here is the code:

    <li id="Search">
    	<h2>Search</h2>
    	   	<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    		<input type="text" name="s" id="s" size="30" value="search this site..."/></form><br /><br />
    	</li>

    Do you have an idea ?

    Thanks in advance.

    Louis

  2. Salum
    Member
    Posted 3 years ago #

    I've taken a look and everything seems fine even in the website it is working. You'd need to press "Enter" to search. You missed the submit button

    <li id="Search">
    	<h2>Search</h2>
    	   	<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    		<input type="text" name="s" id="s" size="30" value="search this site..."/></form>
    		<input type="submit" id="searchsubmit" value="Search" /><br /><br />
    	</li>

    or instead of this default button, you can use an image as a button

    <input type="image" id="searchsubmit" src="Image URL here" class="your CSS class here" />

  3. AndrewGentle
    Member
    Posted 2 years ago #

    Sorry, wrong post!

Topic Closed

This topic has been closed to new replies.

About this Topic