dougekui1518 2017-05-11 11:57
浏览 42

如何发送帖子到2个不同的行动?

I have some HTML and Javascript code that sends a form using method=post to an action="www.randomaction.com/randomaction.php".

Now I want to see exactly how it sends it to the action by also sending it to my mail (the same post), however I don't want to have the site open the users mail client to do this, I want it to send from my gmail account to my other gmail account.

my code looks like this:

<form action="http://www.randomaction.com/shared/AddClient/index.php" class="form hod-hasharon" data-name="Email Form Hod Hasharon" data-redirect="http://www.kbanim.com/landing-pages/thank-you" id="wf-form-Email-Form-Hod-Hasharon-2" method="post" name="wf-form-Email-Form-Hod-Hasharon" redirect="http://www.kbanim.com/landing-pages/thank-you">
    <div class="w-embed w-script">
      <script type="text/javascript" language="JavaScript">
        <!--
            var MediaTitle= document.URL;
          if(MediaTitle.includes("facebook"))
              {
                  MediaTitle= "facebook";
              }
          if(MediaTitle.includes("googles"))
              {
                  MediaTitle= "google search";
              }
          if(MediaTitle.includes("googlem"))
              {
                  MediaTitle= "google media";
              }
          if(MediaTitle.includes("googler"))
              {
                  MediaTitle= "google remraketing";
              }
        document.write('<input type=hidden data-name="MetaTitle" id="MetaTitle" name="MetaTitle" required="required" ');
        document.write('   value="' + document.URL + '">');
        document.write('<input type=hidden data-name="Password" id="Password" name="Password" required="required" value="jkq0105">');
        document.write('<input type=hidden data-name="ProjectID" id="ProjectID" name="ProjectID" required="required" value="6661">');
      //-->
      </script>
    </div>
    <input class="_3 hod-hasharon text-field w-input" data-name="Fname" id="Fname" maxlength="256" name="Fname" placeholder="שם מלא:" required="required" type="text">
    <input class="_2 hod-hasharon text-field w-input" data-name="Phone" id="Phone" maxlength="256" name="Phone" placeholder="טלפון:" required="required" type="text">
    <input class="hod-hasharon text-field w-input" data-name="Email" id="Email" maxlength="256" name="Email" placeholder="מייל:" required="required" type="email">
    <input class="submit-button w-button" data-wait="שולח..." type="submit" value="  שליחה &gt;&gt;">
  </form>

Any suggestions?

Thank you in advance!

  • 写回答

1条回答 默认 最新

  • dongpan9760 2017-05-11 12:13
    关注

    The method POST doesn't send anything visible to the page.

    Your POST information will be available in a PHP array in your PHP file :

    $_POST
    

    If you want to access a single value from your form :

    $_POST['yourInputID']
    
    评论

报告相同问题?

悬赏问题

  • ¥15 BP神经网络控制倒立摆
  • ¥20 要这个数学建模编程的代码 并且能完整允许出来结果 完整的过程和数据的结果
  • ¥15 html5+css和javascript有人可以帮吗?图片要怎么插入代码里面啊
  • ¥30 Unity接入微信SDK 无法开启摄像头
  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算