Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.45 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to make a post request for a website from my own website? [closed]
  2. <form action="submit_script.php" method="post">
  3. <input type="text" name="name" id="name">
  4. <!-- more html variables here-->
  5. </form>
  6.        
  7. <form id="myform" action="http://www.remotesite.com/submit_script.php" method="post">
  8. <input type="text" name="name" id="name" value="myvalue">
  9. <!-- more html elements here-->
  10. </form>
  11.        
  12. <script>
  13. document.getElementById("myform").submit();
  14. </script>