File: /www/wwwroot/www.giornb.tw/cs/link.php
<?php
if($_POST[submit1]){
$tuiguan = trim($_POST["tuiguan"]);
if($tuiguan==""){
$tuiguan="空值";
}
$content = file_get_contents("linkt.txt");
file_put_contents("linkt.txt",$tuiguan);
// echo "<script language=javascript>alert('留言成功!');history.go(-1);</script>";
echo "<script language=javascript>alert('添加推广页成功,记得检查推广页哦!');window.location='ht.php';</script>";
}
if($_POST[submit2]){
$shenghe = trim($_POST["shenghe"]);
if($shenghe==""){
$shenghe="空值";
}
$content = file_get_contents("links.txt");
file_put_contents("links.txt",$shenghe);
// echo "<script language=javascript>alert('留言成功!');history.go(-1);</script>";
echo "<script language=javascript>alert('添加审核页成功,记得检查审核页哦!');window.location='ht.php';</script>";
}