Posts: 339
Threads: 27
Joined: Nov 2009
^ You removed <?php get_page_content(); ?> and you shouldn't have.
I'm updating the 1.1 very soon. I mean, very soon.
Posts: 339
Threads: 27
Joined: Nov 2009
Version 1.1 is now available.
Posts: 11
Threads: 3
Joined: Feb 2010
2010-03-12, 02:38:22
(This post was last modified: 2010-03-12, 02:40:44 by funkylip.)
Problem with the coding of the messages from the contact form.
The version 2.01
It is received on Email:
...test-2/index.php?id=contact
-----------------------------------
Name: ÿ░ÿ╩ÿ╣ÿ╨ÑÂ│ÿ╟ÿ╫ÿ╢ÑÂ─
Email: test@gmail.com
Subject: ÿ╨ÑÂ─ÿ╬ÿ╡ÿ╩ÑÂâ–Â
Body: ÑÂ┤ÿ╣ÑÂ─ÿ╣ÿ©ÿ╦ÑÂ┤ÿ╫ÿ╟ÑÂ■ÿ╨ÑÂ─ÿ╬ÿ╡ÿ╩ÑÂ■ÿ╦ ÑÂ└ÿ╟ÑÂ│ÿ╟ÿ╢ÑÂ▀
Posts: 339
Threads: 27
Joined: Nov 2009
2010-03-12, 03:08:51
(This post was last modified: 2010-03-12, 03:09:18 by ChrisFrank.)
Is that my plugin your using?
What language?
Can you post the original text? (meaning entire email source)
Posts: 11
Threads: 3
Joined: Feb 2010
Has established Simple Contact Plugin 1.1 and has translated to Russian.
On page is displayed correctly:
Name: ÃÂûõúÑÂðýôр
E-mail: alex@mail.ru
Message: тõüð тõüð тõüð тõüð тõüð
It is received on Email:
Name: ÿ░ÿ╩ÿ╣ÿ╨ÑÂ│ÿ╟ÿ╫ÿ╢ÑÂ─
E-mail: alex@mail.ru
Message: ÑÂ┌ÿ╣ÿ╪ÿ╟ ÑÂ┌ÿ╣ÿ╪ÿ╟ ÑÂ┌ÿ╣ÿ╪ÿ╟ ÑÂ┌ÿ╣ÿ╪ÿ╟ ÑÂ┌ÿ╣ÿ╪ÿ╟
For testing site I use localhost "Denwer" (package Apache+PHP +... Russian developers)
Thanks.
Posts: 339
Threads: 27
Joined: Nov 2009
Replace your sc_mail function with this one and let me know what happens.
Code:
function sc_mail () {
global $successmsg;
global $sc_captcha;
global $sc_to;
$error = 0;
if( isset($_POST['sc_submitted']) ) {
$sc_email = $_POST['sc_email'];
if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$sc_email )){
$successmsg = "<div style=\"color:red; text-align:center;\">Invalid email address entered.</div>";
$error = 1;
}
if ( empty($_POST['sc_name']) || empty($_POST['sc_email']) || empty($_POST['sc_subject']) || empty($_POST['sc_message'])) {
$successmsg = "<div style=\"color:red; text-align:center;\">Please fill out all fields.</div>";
$error = 1;
}
if ($_POST['sc_captcha'] != $sc_captcha) {
$successmsg = "<div style=\"color:red; text-align:center;\">Captcha answer incorrect.</div>";
$error = 1;
}
if ($error != 1){
$from = $_POST['sc_email'];
$headers="Content-Type: text/plain; charset=UTF-8\r\n";
$headers.= "From: $from \n";
$message = "Name: ".$_POST['sc_name'];
$message = $message."\n". "E-mail: ".$_POST['sc_email'];
$message = $message."\n". "Message: ".$_POST['sc_message'];
mail($sc_to, $_POST['sc_subject'], $message, $headers);
$successmsg = "<div style=\"color:red; text-align:center;\">Thank you... The form was successfully sent.</div>";
//Clear values
$_POST = array();
}
} else {
$successmsg = "";
}
}
Posts: 11
Threads: 3
Joined: Feb 2010
It has corrected a problem.
Now all is displayed correctly.
It is received on Email:
ØüÑÂ: ÃÂûõúÑÂðýôр
E-mail: alex@mail.ru
áþþñщõýøõ: тõüð тõüð тõüð тõüð тõüð
Thanks
Posts: 339
Threads: 27
Joined: Nov 2009
Still unreadable to me

Guess that's my fault for not knowing Russian.