• hey all

    I’ve searched all over the web, and I can’t find out how to add a search box to One page.

    Not on the sidebar, but inside the text content.

    Does anyone know the code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • <form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
    <div>
    <label for="s">Keyword(s)</label> <input class="text" type="text" value="" name="s" id="s" />
    <input type="submit" class="submit button" name="submit" value="Search" />
    </div>
    </form>
    Thread Starter ladii-mystic

    (@ladii-mystic)

    Sorry Esmi,

    it doesn’t work =/

    I get a Page not found and this code in address bar:

    https://www.runescapeaddicts.com/itemdatabase/&lt;?s=av&submit=Search

    not to mention my sidebar disappears.

    Maybe I should explain a little more.

    I’m trying to add a searchbox INSIDE a Page Content, not a search widget or on the header. Inside the text area.

    This works:

    <form name="search_cat_bar" method="get" action="(----I don't know what to put here----)">
     <table width="500" border="1" cellpadding="5">
       <tr>
         <td>
           <input type="hidden" name="dff_view" value="grid">
           Search:<input type="text" name="dff_keyword" size="30" maxlength="50"> in
           <select name="dff_cat1num" size="1">
             <option value="-1">All Categories
             <option value="-2">--------------
             <option value="101">A
             <option value="193">B
             <option value="2546">C
             <option value="271">D
             <option value="292">E
             <option value="322">F
    
           </select>
           <input type="submit" value="Find">
         </td>
       </tr>
     </table>
    </form>

    but the problem is that I don’t know what link I should put in the Action field

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Searchbox to One page’ is closed to new replies.