I think I have made a simple php mail page...
The first page works fine.
I just enter
http://my.server.name/test/mailtest...0Mailing%20List
and everything works great.
the problem starts when I click the submit button.
I want to pass the variables entered in mailtest.php to action.php and mail them to myself.
if I put
I'm sent a quote of the text in $message<?
$subject = "Test";
$message = '
<html>
<head>
<title><?php echo $_POST["subject"]; ?></title>
</head>
<body>
Name: <?php echo $_POST["FName"]; ?> <?php echo $_POST["LName"]; ?> <br>
Email: <?php echo $_POST["Email"]; ?> <br>
Address: <?php echo $_POST["Address"]; ?><br>
<?php echo $_POST["City"]; ?><?php echo $_POST["State"]; ?><?php echo $_POST["Zip"]; ?>
</body>
</html>
';
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: RCW-ONLINE.COM <[email protected]>\r\n";
?>
<?
mail("[email protected]", $subject, $message, $headers);
?>
if I put
Nothing happens<?
$subject = "Test";
$message =
<html>
<head>
<title><?php echo $_POST["subject"]; ?></title>
</head>
<body>
Name: <?php echo $_POST["FName"]; ?> <?php echo $_POST["LName"]; ?> <br>
Email: <?php echo $_POST["Email"]; ?> <br>
Address: <?php echo $_POST["Address"]; ?><br>
<?php echo $_POST["City"]; ?><?php echo $_POST["State"]; ?><?php echo $_POST["Zip"]; ?>
</body>
</html>
;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: RCW-ONLINE.COM <[email protected]>\r\n";
?>
<?
mail("[email protected]", $subject, $message, $headers);
?>
Can anyone help? I new to php I have only been doing it for little over 18 hours.
I have included my files in a zip...




Reply With Quote