How would I add formatting to the following code? I want to create a 'Title' field so that the story will be led by a bigger, bold title.
<?
if (isset($submit) && isset($file)) {
$file = trim($file);
if ($file != "") {
$filename = "news1.txt";
$handle= fopen($filename,'w');
$file = stripslashes($file);
fputs($handle, $file);
fclose($handle);
$err = 0;
} else {
$err = 1;
}
}
?>
<html>
<head>
<link href="../css2.css" rel="stylesheet" type="text/css" />
</head>
<body>
<hr />
<?php include('nav.php'); ?>
<hr />
<div align="center">
<?
if ($err == 0) {
echo "page updated";
} elseif ($err == 1 ) {
echo "unable to update page";
}
?>
<p><br>
</p>
<form name="update" action="<?=$PHP_SELF?>" method="post">
<h1><strong>News 1</strong><br>
<textarea name="file" cols="100" rows="10" id="file">
<?
$fcontents = file ("news1.txt");
while (list ($line_num, $line) = each ($fcontents)) {
echo htmlspecialchars ($line);
}
?>
</textarea>
<br>
<input type="submit" name="submit" value="update">
</h1>
</form>
</div>
</body>
</html>