title: How to find out which checkboxes have been selected on the next page in VisualForce?
body: <p>I have a data table which iterates through a custom object and generates checkboxes. On the second page, I want to determine which of these checkboxes have been selected.</p>
  
  <p>In the VisualForce page:</p>
  
  <pre><code> Age &lt;apex:inputText value="{!age}" id="age" /&gt;
   &lt;apex:dataTable value="{!Areas}" var="a"&gt;
        &lt;apex:column &gt;
        &lt;apex:inputCheckbox value="{!a.name}" /&gt; &lt;apex:outputText value="{!a.name}" /&gt;
        &lt;/apex:column&gt;
    &lt;/apex:dataTable&gt;
  </code></pre>
  
  <p>In the Controller:</p>
  
  <pre><code> public String age {get; set; }
    public List&lt;Area_Of_Interest__c&gt; getAreas() {
        areas = [select id, name from Area_Of_Interest__c];
        return areas;
    }
  </code></pre>
  
  <p>On my second page, I can retrieve the value that the user put in the textbox "age" by using <code>{!age}</code>. How Do I retrieve which checkboxes have been checked?</p>
  
  <p>Thank you.</p>