2
Contributors
2
Replies
8
Views
4 Years
Discussion Span
Last Post by joshl_1995
0

(Website A "server.php"):

<?php
    $ch = curl_init("Website B/callMe.php");

    $nvp = "&message=YOU PASSED ME!!!!";

    curl_setopt($ch, CURLOPT_POSTFIELDS, $nvp);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    echo json_decode(curl_exec($ch));
?>

(Website B "callMe.php"):

<?php
    echo json_encode("You passed me ".$_POST['message']);
?>

And i get no errors just a blank page.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.