Location: PHPKode > projects > KAMESHsoft mobile blog generator > html.php
<?php
echo"<img src='logo.png' style='width:150px;height:30px'><P>";
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$title = $_POST['title'].".php";
$data = "<body bgcolor='grey'>".$_POST['data']."<P><hr><i>&copy; copy rights 2001 @ KAMESHsoft.inc";
$fo = fopen($title,'w+');
$write = fwrite($fo,$data);
fclose($fo);
if($write){
echo"<font color=green>page <a href=$title> $title</a> created successfully</font></hr>";
}
else{
echo"<font color=red>sory page was not created <P>-by kamesh</font></hr>";
}
}
?>
<html>
<body bgcolor="grey">
<form method="post" action="html.php">
TITLE : <input type="text" name="title"><P>
HTML  :<textarea name="data"></textarea><P>
<input type="submit" name="submit" value="create">
<P><hr><i>&copy; copy rights 2001 @ KAMESHsoft.inc
<body>
<html>
Return current item: KAMESHsoft mobile blog generator