> <?php > $From = $_POST['from']; > $Two = $_POST['two']; > $Subject = $_POST['sub_ject']; > $Comments = $_POST['comments']; > echo "<b>$From</b>";print "\n"; > echo $Two;print "\n"; > echo $Subject;print"\n"; > echo $Comments;print "\n"; > ?> > <?php mail($Two,$Subject,$Comments) ?>
Why do you waste time assigning a variable to a variable...Is it really that hard to just use the $_POST array? <?php echo "<b>" . $_POST["from"] . "</b>\n"; echo $_POST["two"] . "\n"; echo $_POST["sub_ject"] . "\n"; echo $_POST["comments"] . "\n"; mail($_POST["two"],$_POST["sub_ject"],$_POST["comments"]); ?> If that's too hard to understand, use extract(). ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php