evil_bloo wrote in php 😯confused

a little help may be worth alot!

Hi all, first post here *waves!* Ok, someone made me a guestbook for my webpage.. Located here! And you notice how you can't ever "name" then "url" then "why you came" and "comments" and the such right? Well, how do i add that into the PHP? I will post what i have here if it lets me, Sorry if its to long. *very sorry in advance!* thanks all..

$s .= str_replace("\n", "
", str_replace(",", ",", htmlentities($HTTP_POST_VARS[$i])));
if ($i != (sizeof($headers) - 1))
$s .= ",";
}
if ($gb = @fopen($gbfile, "a")) {
fputs($gb, $s . "\n");
header("HTTP/1.0 302 Redirect");
header("Location: viewbook.php");
} else
echo "Could not write guestbook file.";
} else {
?>





<td valign="\"top\"">" . substr($headers[$i], 1) . "</td><td valign="\"top\""></td></tr>\n"; else echo "\n"; } echo "\n"; ?>
" . $headers[$i] . "