Results 1 to 5 of 5

Thread: Help!

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member New to VB 6's Avatar
    Join Date
    Apr 2002
    Posts
    362

    Question Help!

    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

    <?
    $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);
    ?>
    I'm sent a quote of the text in $message
    if I put

    <?
    $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);
    ?>
    Nothing happens

    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...
    Attached Files Attached Files
    [VBCODE]
    Option Explicit
    Dim XXX As Porn
    Dim Wife As Nag

    Private Sub *****_Resize()
    On Error Resume Next
    Get Viagra
    End Sub
    [/VBCODE]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width