title: Zend search form, navigate to external site via controller
body: <p>I have question to You. I am working and fixing little bugs on website built on Zend framework. We have search form indented for searching through services, products and companies. Search form has three radio buttons to select: <strong>services</strong>, <strong>product</strong>, <strong>companies</strong>.</p>
  
  <p>All of these search query are transfered to ListController.php </p>
  
  <p>I need addiotional radio button with label "Articles" and I need to redirect 
  search form to </p>
  
  <blockquote>
    <p>www.example.com/<strong>s?=SEARCH TEXT</strong></p>
  </blockquote>
  
  <p>I don't know If i need to make module in my ListController.php or change my approach.</p>
  
  <p>Code for input text:</p>
  
  <pre><code>&lt;input type="text" id="search" class="searchfield" value="&lt;?php if(isset($_GET['search'])): ?&gt;&lt;?= $_GET['search']; ?&gt;&lt;?php else: ?&gt;Search for product, company and services... &lt;?php endif; ?&gt;"&gt; &lt;a class="searchbutton" onclick="#" href="#"&gt;&lt;i class="fa fa-search"&gt;&lt;/i&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Another code:</p>
  
  <pre><code>&lt;?php if(Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getControllerName()!='user'): ?&gt;
  &lt;?php if(Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getControllerName()=='list' || Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getControllerName()=='companies' || Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getControllerName()=='products'){$small='-small';}else{$small='';} ?&gt;
  
  &lt;?php $defSearch = 'products'; if(isset($_GET['search'])): ?&gt;
  
  &lt;?php if(Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getControllerName()=='list'){
  
      if(Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getActionName()=='services') {
          $defSearch = 'services';
      }
  
  if(Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getActionName()=='companies') {
      $defSearch = 'companies';
  }
  
  } ?&gt;
  </code></pre>
  
  <p>Radio button value:</p>
  
  <pre><code> &lt;div class="searchradio"&gt;
              &lt;label&gt;
                  &lt;input type="radio" &lt;?php if($defSearch=='products'): ?&gt;checked="checked"&lt;?php endif; ?&gt; id="q156" name="type" value="product" /&gt; Product
              &lt;/label&gt; 
              &lt;label&gt;
                  &lt;input type="radio" &lt;?php if($defSearch=='companies'): ?&gt;checked="checked"&lt;?php endif; ?&gt; id="q157" name="type" value="company" /&gt; Company
              &lt;/label&gt; 
              &lt;label&gt;
                  &lt;input type="radio" &lt;?php if($defSearch=='services'): ?&gt;checked="checked"&lt;?php endif; ?&gt; id="q158" name="type" value="services" /&gt; Services
              &lt;/label&gt;
  </code></pre>
  
  <p>I need to do this all through ListController.php ? Or can I make IF statent on input value something like this:</p>
  
  <pre><code>&lt;form method=get action="http://example.com"&gt;
  &lt;input type=text name=q? value=""&gt;
  &lt;input type=submit value="lets go"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Kind Regards</p>