Here is the original submit form.
PHP Code:
<table width="900" height="0" border="0" align="center"><td>
<span class="font">Add Your Site To Snoork Directory Now For Free.</span>
<br><br>
<form method="post" action="process.php"><table width="300" border="0"><tr>
<td valign="top"><span class="font">Site Name:</span></td>
<td valign="top"><input type="text" name="t1"></td></tr><tr>
<td valign="top"><span class="font">Site Address:</span></td>
<td valign="top"><input type="text" name="t2"></td></tr><tr>
<td valign="top"><span class="font">Email Address:</span></td>
<td valign="top"><input type="text" name="t3"></td></tr><tr><td></td>
<td><input name="Submit" type="submit" id="Submit" value="Submit">
</td></tr></table></form></td></table>
Here is the processing file.
PHP Code:
<?php
$mymail = 'Email@Email.com';
$cc = 'Message Title';
$BoDy = ' ';
$FrOm = 'From:' .$_POST['t1'];
$BoDy .= 'Site Name: ';
$BoDy .= $_POST['t1'];
$BoDy .= "\n";
$BoDy .= 'Site Address: ';
$BoDy .= $_POST['t2'];
$BoDy .= "\n";
$BoDy .= 'Site Category: Art';
$BoDy .= $_POST['0'];
$BoDy .= "\n";
$BoDy .= 'Email Address: ';
$BoDy .= $_POST['t3'];
$BoDy .= "\n";
$send = mail("$mymail", "$cc", "$BoDy", "$FrOm");
///Redirect user to your homepage....
if($send)
{
echo '<html><head>';
echo '<meta http-equiv="refresh" content="0;URL=http://directory.snoork.com/category/art/added.php">';
echo '</body></html>';
}
?>
I have posted the submission form and the processing file.
Bookmarks