add links to my web site

  steve263000 12:18 23 May 2005

I want to add some more pages to my site, this time to add some history of the area I live in. It goes back to the 5th century, so has plenty of it. As well as that, I would like to invite local people to add there own links to the site if they so wish. Does someone know of the html code that would let me do this? Or do you think it would be safer and more secure just to put a "click here" and my email address in the hyperlink?

  Nelmon2k 18:05 23 May 2005

You can't really do this in html. There isnt any scripting that will let you do it. If your wanting to use a script you can use something like the following which I use on my own site.

$name = $_POST["name"];
$subject = $_POST["subject"];

if ($name!="" & $subject!="" & $message!=""){
$entire = "
<p align=\"left\">
<b>Posted By: </b> $name<br>
<b>Link: </b><a href="$link">$link</a><br>
<b>Date: </b>".date("l dS of F Y")."<br>

$file = "links.html";
$contents = file_get_contents($file);
$contents = $entire.$contents;

$fp = fopen($file,"w");
echo "<meta http-equiv=\"refresh\" content=\"0;url=click here\">";
//echo "$name<br>$subject<br>$message";
//echo date("l dS of F Y");

<form method="post" action="editpage.php">
<tr><td>Name:</td><td><input type="text" size="50" maxlength="50" name="name"></td></tr>
<tr><td>Date:</td><td><?php echo date("l dS of F Y"); ?></td></tr>
<tr><td>Link:</td><td><input type="text" size="50" maxlength="50" name="link"></td></tr>
<tr><td>Message:</td><td><textarea rows="5" cols="40" name="message" wrap="physical"></textarea></td></tr>
<tr><td coldspan="2"><input type="submit" value="submit" name="submit"></td></tr></table>

  steve263000 05:40 26 May 2005

I would like to thank Nelmon for his advice and forum member as well. I did think that this was the way to go, but I though that I would give it a try. I will try out the script that Nelmon put in as soon as I have a moment.( Although when that will be who knows!) Steve.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

iPhone X review

Political cartoons in 2017: Chris Riddell, Rebecca Hendin and Dave Brown on what it’s like to…

The best iPhone for 2017

Tennis : comment regarder la finale de la Coupe Davis 2017 ?