Location: PHPKode > scripts > Silentum FormSend > form.php
<?PHP
	include("options.php");
	if($_GET["msg"] == "1") $status = "<span style=\"color: #f00\">ERROR: You must enter a subject</span>";
	elseif($_GET["msg"] == "2") $status = "<span style=\"color: #f00\">ERROR: You must enter a name</span>";
	elseif($_GET["msg"] == "3") $status = "<span style=\"color: #f00\">ERROR: You must enter an email address</span>";
	elseif($_GET["msg"] == "4") $status = "<span style=\"color: #f00\">ERROR: You must enter a <ins>valid</ins> email address</span>";
	elseif($_GET["msg"] == "5") $status = "<span style=\"color: #f00\">ERROR: You must enter a message</span>";
	elseif($_GET["msg"] == "6") $status = "<span style=\"color: #f00\">ERROR: Your message cannot be more than ".$maximum_characters." characters</span>";
	elseif($_GET["msg"] == "7") $status = "<span style=\"color: #0a0\">Your message has been successfully sent</span>";
	else $status = "<span style=\"color: #00f\">Enter your message below</span>";
?>
<form action="send.php" method="post">
<table border="1" cellpadding="5" cellspacing="5">
	<tr>
		<td colspan="2">
			<b><?=$status?></b>
		</td>
	</tr>
	<tr>
		<td>
			<b>Subject</b>: <span style="color: #f00">*</span><br>
			<input maxlength="80" name="subject" size="50" type="text"><br><br>
			<b>Your Name</b>: <? if($name_required == true) echo "<span style=\"color: #f00\">*</span>"; else echo "" ?><br>
			<input maxlength="80" name="name" size="50" type="text"><br><br>
			<b>Your Email Address</b>: <? if($email_address_required == true) echo "<span style=\"color: #f00\">*</span>"; else echo "" ?><br>
			<input maxlength="200" name="email" size="50" type="text">
		</td>
		<td>
			<b>Message</b>: <? if($message_required == true) echo "<span style=\"color: #f00\">*</span>"; else echo "" ?><br>
			<textarea cols="37" name="message" rows="5"></textarea><br><br>
			An <span style="color: #f00">*</span> indicates a required field
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="submit" value="Send Message">
		</td>
	</tr>
	<tr>
		<td colspan="2">
			Powered by: <a href="http://hypersilence.com/silentum" title="Silentum FormSend v1.7">Silentum FormSend v1.7</a><br><br>
			All messages are sent directly to:<br><?=$email_address?>.
		</td>
	</tr>
</table>
</form>
Return current item: Silentum FormSend