Results 1 to 8 of 8

Thread: PHP

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    hyb's Avatar
    Join Date: Jul:2003
    Location:
    Posts: 189

    PHP

    , php . ,
    галина георгиева-с.ореш

    :
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
    </head>

    <body>
    <?php
    $name=$_POST['name'];
    $email=$_POST['email'];
    $message=$_POST['message'];

    // ( )

    $youremail = "mail@abv.bg";
    // -

    $subject = "Vote NARISUVAJ MI SLUNCE";
    //

    $thankyou = "thankyou.php";
    // ,

    // !

    if($email == ""){
    ?>
    . .<br/>
    <?php
    }elseif($name == ""){
    ?>
    . . <br/>
    <?php
    }elseif($message == ""){
    ?>
    . . <br/>
    <?php
    }else{

    $msg = ereg_replace("\\\'", "'", $message);
    $msg = ereg_replace('\\\"', "\"", $msg);
    $message1 = "from: $name\nemail: $email\nmessage:\n$message";

    mail($youremail, $subject, $msg, "From: $email\r\nReply-to: $email\r\n"."Content-type: text/plain; charset=windows-1251");
    ?>
    <meta http-equiv="refresh" content="0; url=<?echo $thankyou;?>"">

    <?php
    }
    ?>


    </body>
    </html>
    charset windows 1251, utf-8 e .
    .

  2. #2
    Registered User Odin's Avatar
    Join Date: May:2004
    Location:
    Posts: 1,277
    ?

    !
    IBM ThinkPad T61
    , , ...

  3. #3
    Registered User morgoth_srs's Avatar
    Join Date: Mar:2004
    Location: Sofia
    Posts: 1,149
    : . : . : . : . : . : -. : -.

  4. #4
    Registered User
    Join Date: Jan:2004
    Posts: 50
    галина георгиева-с.ореш == -.
    UTF8. , charset , .

  5. #5
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    mail , :

    PHP Code:
         $mailBoundary md5(uniqid(md5(time())));
             
    $mailHead "From: ...\r\n";
             
    $mailHead .= "Reply-To: ...\r\n";
             
    $mailHead .= "MIME-Version: 1.0\r\n"
             
    $mailHead .= "Content-type: multipart/mixed; boundary=\"".$mailBoundary."\"\r\n\r\n";
             
    $mailHead .= "\r\n\r\n";
             
    $mainContent "--".$mailBoundary."\n";
             
    $mainContent .= "Content-type: text/html; charset=utf-8\r\n";     
             
    $mainContent .= "Content-transfer-encoding: 8bit\r\n\r\n"

  6. #6
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    ? , class, email-.

  7. #7
    hyb's Avatar
    Join Date: Jul:2003
    Location:
    Posts: 189
    z0ne, . , .

  8. #8
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    , . .

Posting Permissions

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

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |