Changing the search box!?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

Changing the search box!?

Post 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?
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

Re: Changing the search box!?

Post 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" />
jatinder
Forum Members
Forum Members
Posts: 17
Joined: Thu Apr 12, 2007 1:49 pm

Re: Changing the search box!?

Post 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}
Post Reply

Return to “CMSMS Core”