So basically, I’m posting data with wp_remote_post, and I want to receive sent data (username and password) on other server. How would I do that? I tried <?php echo $_POST['username']; ?>
(nothing else before or nothing else after), but it didn’t work. Can’t find it either in WordPress Codex.
Leave a Reply
You must be logged in to post a comment.
WordPress protects you from so it’s harded to exploit your code.
Use this code to make it work:
in functions.php add:
and then you can use in your code to read the variable:
This thread helped: http://wordpress.org/support/topic/using-an-extra-parameter-in-an-url