title: Using Codeigniter, how can I tell if a form was submitted with jquery submit()
body: <p>So I've built a wizard using php, and one of the forms asks for the user to upload an image.</p>
  
  <p>I've built everything out already, the only problem is I have to be able to say, in one of my if-statements, if the form was submitted using jquery's submit() method.</p>
  
  <p>So here is the code that submit's the form in jquery after the user has selected an image.</p>
  
  <pre><code>var initUpload = function(){
      $('.filebutton').change(function(e){
          $("form").submit();
      });
  };
  </code></pre>
  
  <p>And this is how my if statement looks.</p>
  
  <pre><code>if($this-&gt;input-&gt;post('back')){
  
     //Tells me that the user clicked on the back button, and to go back 1 step in the wizard.    
  
  }else if(???){
  
     //This is where I would like to say: if form was submitted with jquery.      
  
  }else{
  
     //Else the user just clicked "next" and to continue normally.
  
  }
  </code></pre>
  
  <p>What I already know:</p>
  
  <p>Using <code>$this-&gt;input-&gt;post('back')</code> I can check if the form was submitted using a button with the <code>value</code> of BACK. I've <code>var_dumped $this-&gt;input-&gt;post()</code> but it only returns the values of the input field.</p>