heres most of the code i use for a support forum:
<?php
$username = $_POST["Username"];
$password = $_POST["password"];
$changeto = $_POST["changeto"];
$email = $_POST["email"];
$issue = $_POST["type"];
$message = $_POST["message"];
srand ((double) microtime( )*1000000);
$id = rand(0,100);
if (isset($_POST['submit']))
{
mail("$email, Krrose27@krrose27.com","Image Cabinet support ticket id#:$id","Dear $username,\r\nYour support ticket number is $id please keep this safe\r\n\r\n *****You submitted the following*****\r\nUsername:$username\r\nPassword:$password\r\nEmail:$email\r\nType of query:$issue\r\nChange to (if changing):$changeto\r\nMessage:\r\n$message\r\n\r\n *****End of what you submitted*****\r\nThank you for submitting your helpticket, please keep your ticket number safe. You should recive a reply within 24hrs.\r\nSincerly,\r\nKevinrose\r\nImage Cabinet Owner","From: Image Cabinet support");
}
?>
heres the html
<center>
<p class="style4">SUPPORT</p>
</center><br>
<form method="post" action="<?php echo $PHP_SELF;?>">
Username:<input type="text" size="15" maxlength="20" name="Username"><br>
Password:<input type="password" size="15" maxlength="20" name="password"><br>
Email:<input type="text" size="20" maxlength="30" name="email"><br>
What type of help?<br>
<select name="type">
<option value="Password-change">Password Change</option>
<option value="email-change">Email Change</option>
<option value="Image-problems">Image Problems</option>
<option value="Username-change">Username Change</option>
<option value="other">Other Support</option></select><br>
If you are having something changed please specifiy the new password,email,or username:<br><input type="text" size="20" maxlength="30" name="changeto"><br>
In the box bellow please specifice why you need anything changed or type your other support here too.<br>
<textarea rows="10" cols="60" name="message" wrap="physical"></textarea><br>
<center><input type="submit" value="submit" name="submit"></center><br>
</form><br>
I have it in my page as php forst then the html secound