title: posting form data from iframe src
body: <p><strong>login.php</strong></p>
  
  <pre><code>&lt;iframe id ="login_iframe" name="login_iframe" src ="iframe.php"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>and in my <strong>iframe.php</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form id="login_submitform" method="post" action="post.php" target="_top" /&gt;
  &lt;input type="text" name="customer" value=""/&gt;
  &lt;input type = "text" name="phone" value=""/&gt;
  &lt;input type= "submit" value="submit" /&gt;
  </code></pre>
  
  <p>and in my <strong>post.php</strong> comes the result
      
  
  <pre><code>$customer = $_POST['customer'];
  $phone = $_POST['phone'];
  ?&gt;
  </code></pre>
  
  <p>RESULT
    customer = empty string
    phone= empty string</p>
  
  <p>what am i doing wrong here? how can i get the form values to post.php. pls assist</p>