Bjelleklang
Programmer
I get a parse error on line 12 when i run this script, but I cant find anything wrong with it. Can someone help me???
<?php
$name = str_replace ("\t" , " " , $_GET['name']);
$mail = str_replace ("\t" , " " , $_GET['mail']);
$country= str_replace ("\t" , " " , $_GET['country']);
$comment = str_replace ("\t" , " " , $_GET['comment']);
$dato= date("I dS of F Y H:i:s"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
//THIS IS THE LINE!!!!!
$datafile="guests.list";
if ($fp==false)
die("Cant open file. \r\n"
;
//Vil legge inn etter custom tag i gjesteboka. Hvis mulig, rett inn i html fila,
//samt registrere i statsfil hvor avsender er fra.
$fp = fopen($datafile, "r+"
;
fwrite ($fp, "<P>" . "Name:" . "\t" . $name . "</BR>" . "Date: " . "\t" . $dato . "/BR" . "E-mail address:" . "<\t>" . $mail . "</BR>" . "Comment:" . "\t" . "". $comment . "</BR><HR></BR></P>"
;
fclose ($fp);
?>
<?php
$name = str_replace ("\t" , " " , $_GET['name']);
$mail = str_replace ("\t" , " " , $_GET['mail']);
$country= str_replace ("\t" , " " , $_GET['country']);
$comment = str_replace ("\t" , " " , $_GET['comment']);
$dato= date("I dS of F Y H:i:s"
//THIS IS THE LINE!!!!!
$datafile="guests.list";
if ($fp==false)
die("Cant open file. \r\n"
//Vil legge inn etter custom tag i gjesteboka. Hvis mulig, rett inn i html fila,
//samt registrere i statsfil hvor avsender er fra.
$fp = fopen($datafile, "r+"
fwrite ($fp, "<P>" . "Name:" . "\t" . $name . "</BR>" . "Date: " . "\t" . $dato . "/BR" . "E-mail address:" . "<\t>" . $mail . "</BR>" . "Comment:" . "\t" . "". $comment . "</BR><HR></BR></P>"
fclose ($fp);
?>