Hello All,
I am posting to a page with out a submit button using the function sendToHost - http://dodds.net/~cardinal/sendtohost.txt
I send the following
sendToHost('www .example.com',' post','/page.php', 'ERROR=01');
where www.example.com is my site.
The problem then is that page.php on the site should then read from the $_POST variable and write out the Error to the file.
My code for page.php -
$myFile = "testFile.t xt";
$fh = fopen($myFile, 'w');
fwrite($fh, $_POST['ERROR']);
fwrite($fh, "done");
fclose($fh);
The problem then continues that the page.php file does not write this info out. Do you know how I would be able to get the page.php file to do this or to make sure that the post is actually being sent.
Thanks
I am posting to a page with out a submit button using the function sendToHost - http://dodds.net/~cardinal/sendtohost.txt
I send the following
sendToHost('www .example.com',' post','/page.php', 'ERROR=01');
where www.example.com is my site.
The problem then is that page.php on the site should then read from the $_POST variable and write out the Error to the file.
My code for page.php -
$myFile = "testFile.t xt";
$fh = fopen($myFile, 'w');
fwrite($fh, $_POST['ERROR']);
fwrite($fh, "done");
fclose($fh);
The problem then continues that the page.php file does not write this info out. Do you know how I would be able to get the page.php file to do this or to make sure that the post is actually being sent.
Thanks
Comment