Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    556
    Likes Received:
    16
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yeah, you need to post that to an actual script, not just the domain
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice