title: How do i get data from a page to other page,just simply display on screen with javascript
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>&lt;style&gt;div.container {
    max-width: 800px;
    max-height: 800px;
    display: inline-block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
    &lt;h1&gt;Your Selection&lt;/h1&gt;
    &lt;p&gt;Here is the information you have submitted:&lt;/p&gt;
    &lt;div class="container"&gt;
      &lt;ol&gt;
        &lt;li&gt;&lt;em&gt;AID:&lt;/em&gt;
          &lt;?php echo $_POST['aid']?&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;em&gt;Date of Arrival:&lt;/em&gt;
          &lt;?php echo $_POST['Arrival']?&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;em&gt;Number of Days:&lt;/em&gt;
          &lt;?php echo $_POST['Days']?&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;em&gt;Number of Adults:&lt;/em&gt;
          &lt;?php echo $_POST['adults']?&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;em&gt;Number of Children&lt;/em&gt;
          &lt;?php echo $_POST['children']?&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;em&gt;Total:&lt;/em&gt;
          &lt;?php echo $_POST['Total']?&gt;
        &lt;/li&gt;
      &lt;/ol&gt;
    &lt;/div&gt;
    &lt;div class="container" align="left"&gt;
      &lt;form action="" method="post"&gt;
        Name : &lt;input type="text" name="name" placeholder="Full Name" /&gt;&lt;br&gt; 
        Phone Number : &lt;input type="number" name="number" placeholder="Phone Number" /&gt;&lt;br&gt; 
        Email : &lt;input type="email" name="Email" placeholder="Email" /&gt;&lt;br&gt; 
        Address : &lt;input type="text"
          name="Address" placeholder="Address" /&gt;&lt;br&gt;
        &lt;input type="submit" value="Confirm"&gt;
        &lt;input type="submit" value="Cancel"&gt;
      &lt;/form&gt;
    &lt;/div&gt;
  
  
  
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>As the code runs it will print out the information that user already select and type previously. Whenever the user clicks on submit, it will turn to receipt page and list the data on the screen.</p>