<html>
<head>
<script type="text/javascript">
function formRet()
{
var xmlhttp;
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("myDiv2").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","comments.txt",true);
xmlhttp.send();
}
</script>
</head>
<body onLoad="formRet()">
<form action="next.php" method="get">
Name: <input type="text" name="Name" />
Comment: <input type="text" name="Comment" />
<input type="submit" value="Submit" />
</form>
<!--Comment form by Jimbo-->
<div id="myDiv2">This will be replaced by text from the .txt file!</div>
<!--End of comment form by Jimbo-->
<?php
$datum = date('d-m-Y / H:i:s';
header("Location: https://REPLACE THIS WITH THE URL OF THE COMMENT BOX!");
$handle = fopen("comments.txt", "a");
foreach($_GET as $variable => $value) {
fwrite($handle, $value);
fwrite($handle, "
");
}
fwrite($handle, "Date: $datum (Date=0 GTM)
");
fclose($handle);
setcookie ("user", "empty", time()+3600);
exit;
?>
Copyright © 2024, NextGenUpdate.
All Rights Reserved.