Page 1 of 1

Changing the search box!?

Posted: Tue Jun 26, 2007 3:04 pm
by jmansa
I have changed my search box so I could style it with css, but something is wrong!!!

Code: Select all

{$startform}

<input type="text" name=""cntnt01searchinput"  id="cntnt01searchinput" value="Search..." class="inputbox" size="38" />
{$hidden}

{$endform}
I don't think that "cntnt01searchinput" is correct, caurse when I enter a seach word it comes up saying "No results for "" ". Can somebody please guide me in the right direction?

Re: Changing the search box!?

Posted: Wed Jun 27, 2007 12:37 pm
by stopsatgreen
If the code you posted is the same as the code in your site, then the problem seems to be the double double-quote ("") before the name; it should be:

Code: Select all

<input type="text" name="cntnt01searchinput"  id="cntnt01searchinput" value="Search..." class="inputbox" size="38" />

Re: Changing the search box!?

Posted: Wed Jun 27, 2007 2:04 pm
by jatinder
Why do you want to hardcode the name and id attributes. Doesn't something like this work?

Code: Select all

{$startform}

{$label}: {$inputbox}<input name="submit" value="{$submittext}" type="submit" class="inputbox" />{$hidden}

{$endform}