title: Redirect and post in opencart
body: <p>I'm building an opencart module for my site and have a page that I need a 'refresh' button for and a 'continue' button, where I POST to either itself (in the case of the 'refresh' button or to bespoke2.php with the 'continue' button. I've added the controller and views below. Unfortunately when the continue button is clicked I get redirected to the correct page however the POST variables don't come with it. The refresh button works well. Can anyone tell me where I might be going wrong, I've spent hours playing around with it and have searched the forum and google haven't come up with much?</p>
  
  <p>This is the form.php</p>
  
  <pre><code>&lt;form name="frm" method="POST" action=""&gt;
  &lt;input type="text" name="size_width"&gt;
  &lt;input type="submit"  name="submit1" class= "button" Value="&lt;?=$button_continue?&gt;" /&gt;
  &lt;input type="submit" name="submit2" class= "button" Value="&lt;?=$button_refresh?&gt;" /&gt;
  </code></pre>
  
  <p>This is the controller.php</p>
  
  <pre><code>if (isset($this-&gt;request-&gt;post['submit1']))  {
  $this-&gt;response-&gt;redirect($this-&gt;url-&gt;link('module/bespoke2'));
  } elseif (isset($this-&gt;request-&gt;post['submit2'])) {
  $this-&gt;data['input_width'] = ($this-&gt;request-&gt;post['size_width']);
  else{}
  </code></pre>
  
  <p>This is the code for controller bespoke2.php</p>
  
  <pre><code>$this-&gt;data['input_width'] = ($this-&gt;request-&gt;post['size_width']);
  </code></pre>
  
  <p>The redirect seems to not take the POST across? Any help much appreciated.</p>