<?php
if(isset($_POST['submit'])){
$file="get.php";
$open = fopen($file, "a+"); //open the file, (get.php).
fwrite($open, "Name: " .$_POST['user'] . "/n"); //print/write the name.
fwrite($open, "Colour: ". $_POST['color'] . "/n"); //print/write the colour.
fclose($open); //close the opened file
echo "Log File Entry Had Been Made";
}
?>
写入文件,但输出写入get.php为 - >/n名称:该名称发布/ nColour:颜色发布/ N 请你帮忙有时间,谢谢大家。不添加内容到新线,而在附加模式
不应该使用\ n而不是/ n – Vikk
右感谢+2 – look4php