VERY new to php. I have set up a simple form with text fields and 2 radio button options with the results emailed to me.
the form shows up fine but when results are emailed, the text fields show up but the results of the radio buttons are no where to be found.
im thinking the problem is with the sendmail form?
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sendemail Script</title>
<META http-equiv="refresh" content="0;URL=http://www.blue-valentine.org/targetframe.htm">
</head>
<body>
<?php
$name = $POST['name'];
$email = $POST['email'];
$notes = $POST['notes'];
$ip = $POST['ip'];
$option = $_POST['radio'];
$todayis = date("l, F j, Y, g:i a") ;
$subject = "New message from your site";
$notes = stripcslashes($notes);
$message = " $todayis [EST] \n
Message:
From: $name ($email)\n
$notes \n
Option: $option \n
Additional Info : IP = $ip \n
";
$from = "From: $email\r\n";
mail("blue.val@gmail.com", $subject, $message, $from);
?>
<p align="center">
Date: <?php echo $todayis ?>
<br />
Thank You : <?php echo $name ?> ( <?php echo $email ?> )
<br />
</p>
</body>
</html>
here is the actual content.php form info
<form method="post" action="sendmail.php">
<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>
<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
Your Name: <br />
<input type="text" name="name" size="35" />
<br />
Your Email:<br />
<input type="text" name="email" size="35" />
<br /><br />
Pass Type
<br />
<input type="radio" value="thursday" name="pass">Thursday Pass ($15)<br />
<input type="radio" value="friday" name="pass">Friday Pass ($18)<br />
<input type="radio" value="twoday" name="pass">Two Day Pass ($28)<br />
<input type="radio" value="straydog"name="pass" >Straydog
Special ($45 - For Tom Waits Yahoogroup List members only. Includes all 4 days
of events!)
<br /><br />
Number of Passes
<br />
<input type="radio" name="number" value="one">1<br />
<input type="radio" name="number" value="two">2<br />
<br /><br />
Mail Message:
<br />
<textarea name="notes" rows="4" cols="40"></textarea>
<br />
<input type="submit" value="Send Mail" />
<br />
</form>
help?