Results 1 to 8 of 8
Thread: PHP
Hybrid View
-
3rd October 2008 12:58 #1
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 .
.
-
3rd October 2008 18:50 #2
?
!IBM ThinkPad T61
, , ...
-
3rd October 2008 19:05 #3: . : . : . : . : . : -. : -.
-
3rd October 2008 22:17 #4Registered User
Join Date: Jan:2004
Posts: 50
галина георгиева-с.ореш == -.
UTF8. , charset , .
-
3rd October 2008 23:10 #5
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";
-
7th October 2008 00:59 #6
-
8th October 2008 19:32 #7
z0ne, . , .
-
9th October 2008 20:20 #8




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in