Title: Search.php and SearchForm.php
Last modified: August 20, 2016

---

# Search.php and SearchForm.php

 *  Resolved [CaDeAtH](https://wordpress.org/support/users/cadeath/)
 * (@cadeath)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/searchphp-and-searchformphp/)
 * Good Day,
 * I am having problem in searching, if I will use my searchform (customize), I 
   will return to the index with a url ([http://localhost/?webbox=text](http://localhost/?webbox=text))
   but if I will exchange the webbox in the url into s ([http://localhost/?s=text](http://localhost/?s=text))
   it will use the search.php page…
 * why is that so? is there any problem with my searchform?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [nttoanbrvt](https://wordpress.org/support/users/nttoanbrvt/)
 * (@nttoanbrvt)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/searchphp-and-searchformphp/#post-2376419)
 * search from like this
 *     ```
       <form method="get" action="">
                   <p>
                       <input class="clearfield" type="text" value="Search..." title="Search..." name="s" />
                       <input type="submit" value="" />
                   </p>
               </form>
       ```
   
 * in ACTION, you can using <?php bloginfo(‘url’)?> like this
 * `<form method="get" action="<?php bloginfo('url')?>">`
 * _[sig moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome)]_
 *  Thread Starter [CaDeAtH](https://wordpress.org/support/users/cadeath/)
 * (@cadeath)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/searchphp-and-searchformphp/#post-2376487)
 *     ```
       <form role="search" method="get" id="searchform" action="<?php bloginfo('url')?>" name="searchform">
           <div class="searchbar">
               <input type="text" class="webbox" name="webbox" size="18" value="Search" onclick="sb_focus();" onblur="sb_out();"/>
               <button class="btn" title="Web Search" type="submit">Search</button>
           </div><!--searchbar-->
       </form>
       ```
   
 * That’s my searchform…
    Still it generates webbox in the URL…
 *  Thread Starter [CaDeAtH](https://wordpress.org/support/users/cadeath/)
 * (@cadeath)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/searchphp-and-searchformphp/#post-2376493)
 * I already found the problem,
    it is on the `<input type="text" class="webbox"
   name="webbox" size="18" value="Search" onclick="sb_focus();" onblur="sb_out();"/
   >` **name=”webbox”** I replace it into _**name=”s”**_
 * Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Search.php and SearchForm.php’ is closed to new replies.

## Tags

 * [Searchform](https://wordpress.org/support/topic-tag/searchform/)

 * 3 replies
 * 2 participants
 * Last reply from: [CaDeAtH](https://wordpress.org/support/users/cadeath/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/searchphp-and-searchformphp/#post-2376493)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
