Hi all,
I try to submit a form data using post method.
I have a page:
http://www.s-development.net/sd.php
which has a simple code:
<?$user = $_POST['username'];
$password = $_POST['password'];
echo "$user & $password";
?>
then I have another script on a different server which suppose to send the vars into sd.php:
$getString = "username=scialom&password=formula1";
$resp = exec ("curl -d '$getString' http://s-development.net/sd.php");
print("$resp");
This doesn't work and I get back nothing. Any idea?