Results 1 to 1 of 1

Thread: Php Help!

  1. #1
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default PHP - CONTACT FORM

    Ok Im trying to learn some basic Php like a php form (off Impetuous.net) But I have a problem
    Here is my code:
    <html>
    <head>
    <title>Sendmail</title>
    </head>


    <body bgcolor="#FFFFFF">
    <?php
    $name = $_REQUEST['name'] ;
    $email = $_REQUEST['email'] ;
    $message = $_REQUEST['message'] ;
    mail( "[email protected]", "Feedback Form Results",
    $message, "From: $email" );
    header( "Location: http://www.mymx.ax-hosting.com/thanks.htm" );

    ?>
    </body>


    </html>And this is the message I get when trying to send "/ :


    Warning: Cannot modify header information - headers already sent by (output started at /home2/mymx/public_html/sendmail.php:8) in /home2/mymx/public_html/sendmail.php on line 14

    Any ideas why??

    NEXT- I found out I had to remove the html and i did but no change "/

    After html taken off:

    Warning: Cannot modify header information - headers already sent by (output started at /home2/mymx/public_html/sendmail.php:2) in /home2/mymx/public_html/sendmail.php on line 8
    Last edited by splintercell!; 12-02-2005 at 06:35 PM.


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

Posting Permissions

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