The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Accept post data from remote server

Discussion in 'General Discussion' started by arcuturus1, Jun 9, 2016.

  1. arcuturus1

    arcuturus1 Registered

    Joined:
    Nov 24, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I have two server. From 1st server I'm sending a html form to 2nd server with "POST" method. But 1st server cant not read post data.

    Form
    Code:
    <form action="http://example.com" method="post">
      <input name="say" value="Hi">
      <input name="to" value="Mom">
      <input type="submit" value="ok" />
    </form>
    
    tst.php
    
    <?php
    
    
    print_r($_POST);
    ?>

    Result = Array ( );
     
    #1 arcuturus1, Jun 9, 2016
    Last edited by a moderator: Jun 9, 2016
  2. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yeah, you need to post that to an actual script, not just the domain
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you notice any specific error messages in /usr/local/apache/logs/error_log on either server when this happens? Also, let us know if the previous responses to this thread are helpful.

    Thanks!
     
Loading...

Share This Page