This is what I've been looking for .but I have one small problem

I hope someone understands that

Chris
Code: Select all
<p><a href="form.html">Add your link</a></p>
Code: Select all
require_once('header.txt');
Code: Select all
?>
<p><a href="form.html">Add your link</a></p>
<?php
Code: Select all
<html>
<head>
<title>Add a link</title>
<style type="text/css">
body, td, p {
background-color : #FFFFFF;
color : #000000;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size : 12px;
}
</style>
</head>
<body>
<p>Use the form below to submit your link. All fields are required.</p>
<p><i>Please add a link to our website to your links page before
submitting this form!</i></p>
<form method="POST" action="addlink.php">
<table border="0">
<tr>
<td><b>Your name:</b></td>
<td><input type="text" name="name" size="40" maxlength="50"></td>
</tr>
<tr>
<td><b>E-mail:</b></td>
<td><input type="text" name="email" size="40" maxlength="50"></td>
</tr>
<tr>
<td><b>Website title:</b></td>
<td><input type="text" name="title" size="40" maxlength="50"></td>
</tr>
<tr>
<td><b>Website URL:<b></td>
<td><input type="text" name="url" maxlength="100" value="http://" size="40"></td>
</tr>
<tr>
<td><b>URL with reciprocal link:</b></td>
<td><input type="text" name="recurl" maxlength="100" value="http://" size="40"></td>
</tr>
</table>
<p><b>Website description:</b><br>
<input type="text" name="description" maxlength="200" size="60"></p>
<p><input type="submit" value="Add link"></p>
</form>
</body>
</html>
Code: Select all
<form method="POST" action="addlink.php">
<table border="0">
<tr>
<td><b>Your name:</b></td>
<td><input type="text" name="name" size="40" maxlength="50"></td>
</tr>
<tr>
<td><b>E-mail:</b></td>
<td><input type="text" name="email" size="40" maxlength="50"></td>
</tr>
<tr>
<td><b>Website title:</b></td>
<td><input type="text" name="title" size="40" maxlength="50"></td>
</tr>
<tr>
<td><b>Website URL:<b></td>
<td><input type="text" name="url" maxlength="100" value="http://" size="40"></td>
</tr>
<tr>
<td><b>URL with reciprocal link:</b></td>
<td><input type="text" name="recurl" maxlength="100" value="http://" size="40"></td>
</tr>
</table>
<p><b>Website description:</b><br>
<input type="text" name="description" maxlength="200" size="60"></p>
<p><input type="submit" value="Add link"></p>
</form>
Code: Select all
<html>
<head>
<title>Add a link</title>
<style type="text/css">
body, td, p {
background-color : #FFFFFF;
color : #000000;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size : 12px;
}
</style>
</head>
<body>
<?php
define('IN_SCRIPT',1);
require('settings.php')
?>
<p>Use the form below to submit your link. All fields are required.</p>
<p><i>Please add a link to our website to your links page before
submitting this form!</i></p>
<p><textarea rows="4" cols="60" onfocus="this.select()"><a href="<?php echo $settings['site_url']; ?>"><?php echo htmlspecialchars($settings['site_title']); ?></a> - <?php echo htmlspecialchars($settings['site_desc']); ?></textarea></p>
<p><b>» Step 2: Submit your link</b></p>
<p>All fields are required. Please finish <b>Step 1</b> before submitting this form.
<form method="post" action="addlink.php">
<table border="0">
<tr>
<td class="comb"><b>Your name:</b></td>
<td><input type="text" name="name" size="40" maxlength="50"></td>
</tr>
<tr>
<td class="comb"><b>E-mail:</b></td>
<td><input type="text" name="email" size="40" maxlength="50"></td>
</tr>
<tr>
<td class="comb"><b>Website title:</b></td>
<td><input type="text" name="title" size="40" maxlength="50"></td>
</tr>
<tr>
<td class="comb"><b>Website URL:</b></td>
<td><input type="text" name="url" maxlength="100" value="http://" size="40"></td>
</tr>
<tr>
<td class="comb"><b>URL with reciprocal link:</b></td>
<td><input type="text" name="recurl" maxlength="100" value="http://" size="40"></td>
</tr>
</table>
<p><b>Website description:</b><br>
<input type="text" name="description" maxlength="200" size="60">
<br>Max characters 200</p>
<p><input type="submit" value="Add link"></p>
</form>
</body>
</html>