(NOTE: See the end... got too tired to finish this... maybe later...)
I'm busy... sorry.
But... here's a general summary of what to do with a couple modifications...
I'm reposting the code here for ease of reference.
CREATE A FILE CALLED "sent.php". (this name, like the ones below, CAN change, but you MUST change all references to "sent.php", not just this)
In that page, use this code:
PHP Code:
<?php
if ($_POST['type'] != "") {
$filename = $_POST['type'].".phpdata";
if ($name = stripslashes($_POST['url'])) {
$hr = "";
if (strlen(@file_get_contents($filename)) > 0) $hr = "\n<hr>";
$add = $hr."<a href=\"".$url."\">".$url."</a>";
$urls = @file_get_contents($filename).$add;
$file = @fopen($filename, "w+");
@fwrite($file, $urls);
@fclose($file);
$message = "Your URL was successfully added.<br>Redirecting to index.php";
}
else {
$message = "You either entered no data or it was entered incorrectly.<br>Redirecting to index.php";
}
}
else $message = "You must select a type of link.";
?>
<html>
<head>
<title>Link Added Demo</title>
<meta http-equiv="refresh" content="3;url=index.php">
</head>
<body>
<div align="center">
<p><font size="+1">Link Added Demo:</font></p>
<?php echo $message; ?>
</div>
</body>
</html>
NOTE: The refresh to "index.php" needs to be the main page. So... change that to whatever.
Also, the display at the end is obviously simple. Change the html however you want, but leave the php alone. You could include the php into your layout if you needed, etc.
Grr.... I'm so tired. Been messing with this code for a bit.
Get the other pages from there.
What I did with the type setup is that $type.phpdata will be the file containing the urls...
so... the form sent must include a name="type" field.. probly a dropdown.
In that, you might have "information" and information.phpdata would be the text file containing the data.
Right now, this code probably DOESN'T work. But... it's a start... and, with the other page, might make enough sense to use.
At this point, I'm giving up for the night... can't deal with coding any more 
g'night/good luck.... lemme know if you want more help with this.
In the end, you might just want another script anyway.
Bookmarks