我正在使用以下處理器將名稱,電子郵件和電話發送到平面文件。捕獲IP地址
<?php
$vname = $_GET["visitor"];
$vemail = $_GET["visitormail"];
$vphone = $_GET["visitorphone"];
print("<b>Thank You!</b><br />Your information will be entered once into the raffle!");
$out = fopen("savedinfo.php", "a");
if (!$out) {
print("Could not append to file");
exit;
}
fputs ($out, "\n");
fwrite($out,"$vname, $vemail, $vphone.");
fclose($out);
?>
我曾嘗試過各種手段,同樣送IP地址的平面文件,但無法去工作吧!
我開始與這條線<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
,並尋求實現的結果如下fwrite($out,"$vname, $vemail, $vphone, $ipi.");