In this page, the search box works: http://www.duplika.com/blog/ad-blueprint

In my page, using the same theme, the value typed to the search box is not passed to the server: http://ccmockup.frabujous.us/.

I suspect this has something to do with edit-search_theme_form_keys/search_theme_form_keys.

The value of this input is not getting passed on.

Am I on the right track? Any suggestions? Thanks in advance.

Comments

nevets88’s picture

I got the search box to work by removing the files from the theme directory:

search_theme_form.tpl.php
search-theme-form.tpl.php

So something is wrong with the code in these files.

search_theme_form.tpl.php (removed the delimiters):


<input type="text" maxlength="128" name="search_theme_form_keys" id="edit-search_theme_form_keys"  size="25" value="<?php print t("Search"); ?>" title="<?php print t("Enter the terms you wish to search for."); ?>" class="form-text" onfocus="clearDefault(this)" onblur="clickrecall(this,'<?php print t("Search"); ?>')"/>

<input type="hidden" name="form_id" id="edit-search-theme-form" value="search_theme_form" />

<input type="hidden" name="form_token" id="a-unique-id" value="<?php print drupal_get_token('search_theme_form'); ?>" />

search-theme-form.tpl.php: