送信ボタンやユーザー入力を使用せずに POST リクエストを自動的に送信するには、ロード時に PHP ページが必要です。応答に対して何もする必要はありません。
「8」を www.mydomain.com に POST するだけです。
$url = 'http://www.mydomain.com/';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 8);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
私は何を間違っていますか?