PHP interesse |
|
ik heb wat geprobeerd:
Plaatscode: 5301
alleen dit werkt niet. er komt niks bij staan...
Verwerk.php
<?php
if(isset($_GET['msg']) && $_GET['msg'] != '') {
$name = 'Testje';
$msg = $_GET['msg'];
$file = fopen('archive/shoutbox_'.$date.'.txt', "r+");
$oldfile = file_get_contents('archive/shoutbox_'.$date.'.txt');
fputs($file, $oldfile."<table style='width: 100%; border: 1px dotted #CCCCCC;'>
<tr bgcolor=\"#87C53E\">
<td width='100%'>".$name."</td>
<tr bgcolor=\"#87C53E\">
<td width='100%'>".$msg."</td></tr>
</table>
");
fclose($file);
}
?>
<?php if(isset($_GET['msg']) && $_GET['msg'] != '') { $name = 'Testje'; $msg = $_GET['msg']; $file = fopen('archive/shoutbox_'.$date.'.txt', "r+"); fputs($file, $oldfile."<table style='width: 100%; border: 1px dotted #CCCCCC;'> <tr bgcolor=\"#87C53E\"> <td width='100%'>".$name."</td> <tr bgcolor=\"#87C53E\"> <td width='100%'>".$msg."</td></tr> </table> "); } ?>
|