I have a code that forwards messages to my e-mail address, but the textarea is too small. How do I increase the textarea? Here is the code below:
<html>
<head>
<title>Contact Form</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
if ($SERVER['REQUEST_METHOD'] != 'POST'){
$me = $SERVER['PHP_SELF'];
print <<<TOEND
<form name="form1" method="post"
action="$me">
<table border="0" cellspacing="0" cellpadding="2">
Contact the Club Advisor, Mr. Egereonu<tr>(Please inlude your e-mail address)<br><br>
<td>Your Name:</td>
<td><input type="text" name="Name"></td>
</tr>
<tr>
<td>Subject:</td>
<td><input type="text" name="Subject"></td>
</tr>
<tr>
<td valign="top">Message:</td>
<td><textarea name="MsgBody"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit"
value="Send"></td>
</tr>
</table>
</form>
TOEND;
} else {
error_reporting(0);
$recipient = 'frankobi@aol.com';
$subject = $POST['Subject'];
$from = $POST['Name'];
$msg = "Message from: $from\n\n".$_POST['MsgBody'];
if (mail($recipient, $subject, $msg))
echo nl2br("<b>Message Sent:</b>
To: $recipient
Subject: $subject
Message:
$msg");
else
echo "Message failed to send";
}
?>
</body>
</html>
Thank you.
--Frank