title: Passing variables from HTML to PHP without forms
body: <p>This may not be possible, which is why I can't find the answer, but is it possible to pass variables from HTML to PHP without a form?</p>
  
  <p>I'm trying to create a template that will use HTML I import into a Wordpress Page. I want to be able to put certain divs in different parts of the template. Think of a table, where I put the divs in different cells.</p>
  
  <p>Any help you can give me would be greatly appreciated. Thank you!</p>
  
  <p>edit:
  I haven't created the template code yet, since I'm not sure how to without the answer to my question. But here's an example of the code I'm pulling from:</p>
  
  <p>&lt;div id="text-column"&gt;</p>
  
  <p>&lt;div class="scarlet_underline"&gt;
  &lt;p class="toc_dept"&gt;&lt;a href="XXX"&gt;&lt;img src="XXX" width="112" height="36" alt="Forum" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;p class="toc_item"&gt;&lt;a href="XXX"&gt;University futures; Science’s influence; Can geoengineering be green?; Mineral reserves; Transforming conservation; Intelligent transportation; Personal health records.&lt;/a&gt;&lt;/p&gt;
  &lt;/div&gt;</p>
  
  <p>&lt;div class="scarlet_underline"&gt;
  &lt;p class="toc_dept"&gt;&lt;a href="XXX"&gt;&lt;img src="XXX" width="112" height="36" alt="From the Hill" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;p class="toc_item"&gt;&lt;a href="XXX"&gt;House approves bill to reform offshore oil drilling; Senate committee approves competitiveness bill; GAO investigates genetic test companies; House, Senate committees lay out plans for NASA’s future; Federal science and technology in brief.&lt;/a&gt;&lt;/p&gt;
  &lt;/div&gt;</p>
  
  <p>So ideally, these two "scarlet_underline" divs would each be pulled separately, maybe by using the alt attribute? The template code would be something like:</p>
  
  <p>&lt;div class="forum"&gt;&lt;?php <em>code that pulls that div</em> ?&gt;&lt;/div&gt;</p>
  
  <p>&lt;other code other code&gt;</p>
  
  <p>&lt;div class="hill"&gt;&lt;?php <em>code that pulls that div</em> ?&gt;&lt;/div&gt;</p>