Instructions to set up the Link Submission Form

Step 1: Copy the entire HTML-code as given below into a new file.

Save the file under the name linksubmit.html.

View the example:

 
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="author" content="Johannes P Wilbrand">
<meta name="description" content="Link Submission Form">
<meta name="keywords" content="Link Submission Form">
<title>Link Submission Form</title>
</head>
<body text="#000000" bgcolor="#D8BEEE">

<table width="95%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>

<font face="Comic Sans MS" color="#220022" size="+1">
Please feel free to pass on any interesting links.<br>Thank You!!!
</font>

<form name="LinkSubmissionForm" method=post action="linksubmit.php">

<font face="Bookman Old Style">Full name:
<br><input type="text" name="First Name" size="75"><br>

<br>Please enter your complete email address:
<br><input type="text" name="Email Address" value="yourname@domain.com" size="75"><br>

<br>Please enter the URL here:
<br><input type="text" name="Website" value="http://" size="75"><br>

</font>

<p>
<center><input TYPE="submit" VALUE="Submit this Link">   <input TYPE="reset" VALUE="Made a Mistake?"></center>
<p>
</form></td>

</tr></table>

</body>
</html>
 

Step 2: Copy the entire HTML-code as given below into a new file.

Save the file under the name thanks.html in the same directory
as the linksubmit.html file.

View the example:

 
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="author" content="Johannes P Wilbrand">
<meta name="description" content="Link Submission">
<meta name="keywords" content="Link Submission">
<title>Thank You!</title>
</head>
<body bgcolor="#D8BEEE">

<center>
<table valign="center" height="75%" width="75%" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="center">
<center>
<font face="Comic Sans MS" size="+1" color="#220022">
<b>Thank you kindly for your entry!<br> <br>Please visit this site again soon!</b>
</font></center></td></tr>
</table>
</center>

</body>
</html>
 

Step 3: Copy the entire PHP-code as given below into a new file and
enter in the yourname@domain.com field your email address.

Save the file under the name linksubmit.php in the same directory
as the linksubmit.html and thanks.html files.

Note: the linksubmit.php file should be in the same directory as the
linksubmit.html file. Else you need to enter in the linksubmit.html
file the directory to which the linksubmit.php file will be saved.

Furthermore, it is very important that you DO enter the directory, to
which the thanks.html file refers, in the linksubmit.php file under
any circumstances, unless you intend to save that file to your root
directory, in which case the "/" MUST still precede the file name.

Example:
To refer to the thanks.html file as if located in the root directory
the last line must read:
header('Location: http://'.getenv('HTTP_HOST').'/thanks.html');

or to refer to the thanks.html file as if located in a directory named
communication for instance the last line must read:
header('Location: http://'.getenv('HTTP_HOST').'/communication/thanks.html');

 
<?php
$admin= 'yourname@domain.com';
$subject= 'Link Submission Form';
$message= 'Link Submission '.$admin.' from '.$email.":\n\n";

foreach($HTTP_POST_VARS as $name=> $value) {
$message.= "$name: $value\n";
}

$message = WORDWRAP($message,75,"\n");

mail($admin, $subject, STRIPSLASHES( $message ) , "From: $email");

header('Location: http://'.getenv('HTTP_HOST').'/directory/thanks.html');

?>
 

     ... or simply download a ZIP file of a ready-made set and save it all to one directory!

Please note: Should you make use of the download files you still need to
enter in the relevant yourname@domain.com field of the linksubmit.php
file YOUR email address. Any more

©2002 http://www.downintheflood.net