Need help with PHP

    Date: 08/21/07 (Web Development)    Keywords: php, web

    Hey, I need help with my website. I tried to do a php comments form, but when I upload it to the server, the PHP code disappears. Can yall look at my code and see if that could be the problem?




    SheenaDawn.com








       
       

       

           
           
               
           

       

       

           
           
                Romantic Poetry
                Pagan Poetry
           

       

       

           
           
                Flash Fiction
                Town of Mala
           

       

       

           
           
                Magdlynn in Flames
                Hall of Heroes
                True Majik
           

       

       
       

           
           
           

       





       

               
           



       if ($SERVER['REQUESTMETHOD'] != 'POST'){
          $me = $SERVER['PHPSELF']
    ?>


    Name:
    (optional)

    Email Address:
    (optional)

    Message:    



     


         

      } else {
          errorreporting(on);
          $recipient = 'sheena_bandy@msn.com';
          $subject = 'Comment on SheenaDawn';
          $from = 'Anonymous';
          $msg = "

    Name: " .$_POST['name']. "

    Email:" .$_POST['email']. "

    Message: " .$_POST['message']. "

    ";
        $headers = "MIME-Version: 1.0" . "\r\n";
        $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
          if (mail($recipient, $subject, $msg))
             echo nl2br("

    Message Sent:
             To: $recipient
             Subject: $subject");
          else
             echo "Message failed to send";
    }?>





           


       







    Source: http://community.livejournal.com/webdev/430401.html

« flash intro || Emulation of resizable... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home