Why this PHP Script returns a blank page when I run it on the server?

It is supposed to write stuff on the page.html, but is not. Can you help? Here it is:
<form action="<?=$PHPSELF?>">
<h3>HEADER:<br>
<input type="text" name="header"></h3>
<p>CONTENT:<br>
<textarea name="stufftosubmit" rows="7" cols="77">
</textarea>
<input type="submit" name="submit"></p>
</form>
<a href="page.html">page.html</a>
<?
if($submit){
$updatedpage=fopen('page.html','w');
$header='<h3>'.$header.'</h3>';
$content=stripslashes($stufftosubmit);
fputs($updatedpage,($header.'<br><p>'.$content.'</p>'));
fclose($updatedpage);
}?>
Line is not wholly showing:
fputs($updatedpage,($header.'<br><p>'.$content.'</p>'));
Here it is the line that is not showing all broken in two parts:
fputs($updatedpage,($header.'
<br><p>'.$content.'</p>'));

Read it as together...
 
Back
Top