Forum Moderators: coopster

Message Too Old, No Replies

fwrite() in the middle of a document

         

sebbothebutcher

9:08 pm on Apr 20, 2004 (gmt 0)

10+ Year Member



hi i have programmed a small guestbook. the entries are stored in a file called notes.php which looks like this:

<html>
<head>
<title>Guestbook</title>
<link rel="stylesheet" type="text/css" href="normstyle.css">
</head>
<body bgcolor="#66666">
<table width="800" align="center">
<td>
<div align="left" class="standard">
Welcome to my Guestbook
</div>
<br/>

below this, the entries are written. now here's my question: how can i manage it, that i write something UNDER the entries so that the file looks like this:

<html>
<head>
<body>
<table>
...
entry 1
entry 2
entry x
...
</table>
</html>
</head>
</body>

any suggestions how to write the part below the entries?

coopster

9:00 pm on Apr 21, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Why not store the entries in a file and use include [php.net]?

sebbothebutcher

9:23 pm on Apr 21, 2004 (gmt 0)

10+ Year Member



sometimes the easiest solutions don't seem to come to my mind...
great idea! didn't think of it, altough it's so simple! thanks!