【php开源代码栏目提醒】:网学会员鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“index1.php”一文,供大家参考学习
<table width="349" border="1" align="center">
<form name="form1" method="post" action="index.php">
<tr>
<td height="38"> <input type="text" name="name" size="25"></td>
</tr>
<tr>
<td height="39"><div align="center"><input type="submit" name="submit" value="提交"></div></td>
</tr>
</form>
</table>
<?php
if($_POST[submit]!=""){
$name=$_POST[name];
$fp=fopen("aa.txt","r");
$str=fread($fp,filesize("aa.txt"));
$name.=$str;
echo $name;
$fp1=fopen("aa.txt","w");
fwrite($fp1,$name);
}
?>