PHP "十二五" 简易 BLOG 代码- 未测试- 09

manage/sta_say.php

##########

<?php
//Rever something
$sta_say=$_POST["sta_say"];
$name="sta_say".$_SESSION["user_id"];
if($sta_say!=""){
$sta_say=str_replace(" "," ",$sta_say);
//Write DOC
if($fp=fopen(../config/$name.txt","w")){
fwrite($fp,$sta_say);
fclose($fp);
}
}
//READ DOC
if(@$fp=file("../config/$name.txt")){
for ($i=0;$i<count($fp);$i++){
$str_out.=$fp[$i];
}
}
@include "../config/$name.inc";
?>
<br><h4>Blog's Talking</h4>
<table width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="1" bgcolor="#CCCCCC"></td>
</tr>
<tr>
<td height="30" align="left" valihn="middle">PLS USING UNDER FROM TABLE TALKING</td>
</tr>
<tr>
<td height=1" bgcolor="#CCCCCC"></td>
</tr><form id="form1" name="form1" method="post action="user.php?target=sta_say">
<tr>
<td height="200" align="center" valign="middle">
<textarea name="sta_say" cols="40" rows"12"><?php echo $str_out;?></textarea></td>
</tr>
<tr>
<td height="30" align="center" valign="middle"><input type="submit" name="Submit" value="SUBMIT" />
 
 
 
 
<input type="reset" name="Submit2" value="RESET"/></td>
</tr></form>
<tr>
<td height="1" bgcolor=#CCCCCC"></td>
</tr>
</table>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值