title: How to pass default values from codeigniter application to different website
body: <p><strong>Error</strong></p>
  
  <blockquote>
    <p>Not able to pass the value from this application to other website.</p>
  </blockquote>
  
  <p><strong>View</strong></p>
  
  <p>In this view using action i have called the controller function. If the user selects Pay-Me then value 1 will be passed to controller function.</p>
  
  <pre><code>&lt;form id="formMuktinath" method="post" action="&lt;?php echo base_url().'index.php/booking/bookManakamana'?&gt;"&gt;
  
      &lt;div class="form-group"&gt;
           &lt;label for="name" class="col-sm-3 col-lg-offset-2 control-label"&gt;Payment From &lt;/label&gt;
           &lt;div class="col-sm-4"&gt;
               &lt;select class="select form-control" name="manakamana[payment_from]"&gt;
                    &lt;option value="1" selected&gt;Pay-Me&lt;/option&gt;
                    &lt;option value="2"&gt;BIL&lt;/option&gt;
               &lt;/select&gt;
           &lt;/div&gt;
       &lt;/div&gt;
  
       &lt;div class="form-group"&gt;
           &lt;div class="col-md-offset-5"&gt;
               &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
           &lt;/div&gt;
       &lt;/div&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <p>If 1 is selected then it calls payme website. Then there <strong>redirect</strong> function using <strong>$data</strong> does not pass <strong>amt value</strong> to payme website.</p>
  
  <pre><code>public function bookManakamana(){
  
      if ($data = $this-&gt;input-&gt;post('manakamana')) {
  
          $data['created_on'] = date('Y-m-d H:i:s');
  
          if ($data['payment_from'] == '1') {
  
                      $data['amt'] = '100';
  
              redirect('http://dev.payme.com/pay/main',$data);
  
          }
  
          if ($data['payment_from'] == '2') {
              echo 'bli';
              exit;
          }
  
          redirect('booking/index');
  
      } else {
          $this-&gt;load-&gt;view('index');
      }
  
  }
  </code></pre>