title: missing argument & undefined variable; the reason for the errors?
body: <p>I am receiving the following errors, I'm asking if anyone knows a possible reason why I would get these. I am newbish so help would be grateful...
  I will also post the lines in question.</p>
  
  <pre><code>A PHP Error was encountered
  
  Severity: Warning
  
  Message: Missing argument 1 for Welcome::quote()
  
  Filename: controllers/welcome.php
  
  Line Number: 64
  </code></pre>
  
  <p>and</p>
  
  <pre><code>A PHP Error was encountered
  
  Severity: Notice
  
  Message: Undefined variable: productid
  
  Filename: controllers/welcome.php
  
  Line Number: 65
  </code></pre>
  
  <p>The lines in question;</p>
  
  <pre><code>64    function quote($productid){ 
  65        if ($productid &gt; 0){
  66            $fullproduct = $this-&gt;MProducts-&gt;getProduct($productid);
  67            $this-&gt;MQuotes-&gt;updateQuote($productid,$fullproduct);
  68            redirect('welcome/product/'.$productid, 'refresh');
  69        }else{
  70        $data['title'] = '... | Quote';
  ..       
  ..        if (count($_SESSION['quote']) == true){
  ..        $data['main'] = 'quote';
  ..        $data['navlist'] = $this-&gt;MCats-&gt;getCategoriesNav();
  ..        $this-&gt;load-&gt;vars($data);
  ..        $this-&gt;load-&gt;view('template');
  ..        }else{
  ..        redirect('welcome/index','refresh');
  ..        }
  ..    }
  ..    }
  </code></pre>
  
  <p>what's wrong with $productid??</p>