<title>TAG WorkBook</title>
<?
$tag = $_POST["TAG"];
$filename = $_POST["FILENAME"];
$ulflag = $_POST["UNLINKFLAG"];
echo "<font face='verdana' size=2pt>TAG WorkBook</font><br/><hr><p/>";
echo "<form method=post action=".$_SERVER["PHP_SELF"].">";
if($tag)
{
echo $tag;
if($filename)
{
if(!$fp=fopen("./html/$filename","w+"))
die("FILEOPEN Failed!");
fwrite($fp,$tag);
fclose($fp);
echo "<font face='verdana' size=2pt><p/><hr><br><a href='./html/$filename'>SOURECE</a> | ";
echo "<input type=checkbox name=UNLINKFLAG>Check unlink ! | ";
// echo "<a href='".$_SERVER["PHP_SELF"]."'>RETURN to WorkBook</a></font>";
echo "<input type=hidden name=FILENAME value=$filename>";
echo "<input type=submit value='Return to WorkBook' ";
echo " style='height:15px;border:0;background-color:#ffffff;'>";
}
}
else
{
if($ulflag)
unlink("./html/$filename");
echo "<textarea name='TAG' rows=30 cols=80>";
echo "</textarea><p/>";
echo "<input type=text size=30 name='FILENAME'> <input type=submit value='GO!' size=10>";
}
echo "</form>";
?>
'Dev./Sec. Study > PHP' 카테고리의 다른 글
delete cookie value (4) | 2008.09.28 |
---|---|
DIARY :: Calendar + Scheduling (0) | 2007.06.04 |
글자 색 바꾸기 (0) | 2007.04.24 |