title: HTML: Forms and Subdomains
body: <p>I have a very basic question.  Please consider a site with subdomains:</p>
  
  <p>MAIN SITE: <strong>www.domain.com</strong></p>
  
  <p>Sub-domain 1: <strong>sub1.domain.com</strong></p>
  
  <p>Sub-domain 2: <strong>sub2.domain.com</strong></p>
  
  <p>The main site, in <a href="http://www.domain.com/index.php" rel="nofollow">http://www.domain.com/index.php</a>, has a form:</p>
  
  <pre><code>&lt;form action="http://sub1.domain.com" method="post"&gt;
  &lt;input type="text" name="userInput"&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Will the data be posted to <a href="http://sub1.domain.com" rel="nofollow">http://sub1.domain.com</a> and be accessible by the following: (?)</p>
  
  <pre><code>&lt;?php 
    $input = $_POST['input']
    //the goal is to make $input, a variable in http://sub1.domain.com/index.php
    //equal to what the user submitted in the form at http://www.domain.com/index.php
  ?&gt;
  </code></pre>
  
  <p>I simply need to load <code>sub1.domain.com/index.php</code> with the posted variables present, no real-time fanciness.  From my reading, I've determined there may be a setting which blocks this activity in apache or some other application, but theoretically, data should be able to be sent to any domain/subdomain from any domain/subdomain using POST, correct?</p>