title: Predetermine page sequence using PHP
body: <p>I'm building a multipage form for an online experiment, which will involve showing different versions of the questions to different users. Is there a simple way to create page sequences that incorporate different combinations of the page files? Say I have these files: <code>1A.php</code> and <code>1B.php</code> (page 1); <code>2A.php</code> and <code>2B.php</code> (page 2); <code>3A.php</code>, <code>3B.php</code>, <code>3C.php</code>, <code>3D.php</code>, <code>3E.php</code> and <code>3F.php</code> (page 3) and so on, how would I go about creating a set of unique navigation paths? For instance, one might be [<code>1A.php</code> -> <code>2B.php</code> -> <code>3E.php</code> -> <code>4B.php</code>] while another is [<code>1A.php</code> -> <code>2B.php</code> -> <code>3A.php</code> -> <code>4C.php</code>]. (I'm new to PHP so I suspect this might not be the most sophisticated way of doing things, but I'm happy as long as something works.) Each page has an <code>&lt;input type="submit"&gt;</code> button and connects to a database via a separate PHP file.</p>
  
  <p>The idea is to randomly redirect users from the start page to one of the (12) preset sequences.</p>
  
  <p>Any suggestions?</p>
  
  <p><strong>Edit</strong>: The objective here is not to generate <em>every</em> possible set of questions. To clarify, the objective is to specify 12 of the possible page combinations (for reasons to do with the experimental design). The questionnaire will have a start page, and from here I'd like to redirect respondents to one of 12 branches. </p>