i have two page , i try to pass the variable , email and password to b.php by POST
but it's not o.k. . and error message at the end
a.php
<?
$url= parse_url('http://chings.no-ip.com/b.php');
$requestData = "email=test&password=rtrt";
$requestString= "POST ".$url['path']." HTTP/1.1\r\nConnection: close\r\nHost: ".$url['host']."\r\nContent-type: application/x-www.form-urlencoded\r\nContent-length: ".strlen($requestData)."\r\n\r\n".$requestData;
$fp = fsockopen($url['host'], 80, $err_num, $err_msg, 5);
if ($fp)
{
fputs($fp, $requestString);
$response='';
while (!feof($fp))
{
$response .= fread($fp, 1024);
}
fclose($fp);
}
echo($response);
?>
b.php
<?
$email = $POST['email'];
echo($email);
echo("<br>");
$password = $POST['password'];
echo($password);
?>
HTTP/1.1 200 OK Date: Wed, 17 Mar 2004 06:11:33 GMT Server: Apache/2.0.46 (Win32) X-Powered-By: PHP/4.3.1 Connection: close Transfer-Encoding: chunked Content-Type: text/html ee
Notice: Undefined index: email in D:\apache\Apache2\htdocs\login.php on line 3
Notice: Undefined index: password in D:\apache\Apache2\htdocs\login.php on line 10