smrpgx
02-13-2006, 10:10 PM
I have been having trouble with my form.
Here is what I have for my contact page...
<h3>Contact</h3><p>
<form action="admin/action.php" method="post">
Your e-mail:
<input type="text" name="email">
<p>Type of message:<br>
<input type="radio" name="type" value="comment"> Comment
<br>
<input type="radio" name="type" value="question"> Question
<br>
<input type="radio" name="type" value="complaint"> Complaint<p>
<textarea name="message" rows="10" cols="30">
</textarea><br>
<INPUT type="submit" value="Send"> <INPUT type="reset">
</form>
Here is what I have for admin/action.php...
<?php
$type = $_POST["type"];
$message = $_POST["message"];
$email = $_POST["email"];
mail("smrpgx@gmail.com", "$type", "$message $REMOTE_ADDR $email")
?>
Can someone tell me what I am doing wrong? I'm new at this stuff so please don't point and laugh at me.
Here is what I have for my contact page...
<h3>Contact</h3><p>
<form action="admin/action.php" method="post">
Your e-mail:
<input type="text" name="email">
<p>Type of message:<br>
<input type="radio" name="type" value="comment"> Comment
<br>
<input type="radio" name="type" value="question"> Question
<br>
<input type="radio" name="type" value="complaint"> Complaint<p>
<textarea name="message" rows="10" cols="30">
</textarea><br>
<INPUT type="submit" value="Send"> <INPUT type="reset">
</form>
Here is what I have for admin/action.php...
<?php
$type = $_POST["type"];
$message = $_POST["message"];
$email = $_POST["email"];
mail("smrpgx@gmail.com", "$type", "$message $REMOTE_ADDR $email")
?>
Can someone tell me what I am doing wrong? I'm new at this stuff so please don't point and laugh at me.