Posted By

apphp-snippets on 06/05/17


Tagged

iframe html post to


Versions (?)

Post Data to iFrame with HTML Only


 / Published in: HTML
 

URL: www.apphp.com/index.php?snippet=html-post-data-into-iframe

To send data into iFrame you don't need JavaScript or anything. You just have the form's target attribute match the iframe's name attribute. The outer page doesn't even reload. Copy this code and test it.

  1. <form action="iframe.php" target="my_iframe" method="post">
  2. <label for="text">Name:</label>
  3. <input type="text" name="full_name">
  4. <label for="text">Email:</label>
  5. <input type="text" name="email">
  6. <input type="submit" value="post">
  7. </form>
  8. <iframe name="my_iframe" src="iframe.php"></iframe>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: elizadd on July 30, 2017

Always so interesting to visit your site.What a great info, thank you for sharing. this will help me so much in my learning Read Full Report

Posted By: robertfcrocker on July 30, 2017

I found that site very usefull and this survey is very cirious, I ' ve never seen a blog that demand a survey for this actions, very curious... redirected here

Posted By: elizadd on July 31, 2017

I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing.
this link

You need to login to post a comment.