הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   עזרה בטופס יצירת קשר פשוט (https://hosts.co.il/forums/showthread.php?t=81923)

Acid-Burn 02-04-10 14:46

עזרה בטופס יצירת קשר פשוט
 
היי יש לי טוספ יצירת קשר באתר

http://www.upics.co.il/contact.php

עכשיו שאני אומר לו לשלוח לי את המיילים לג'ימייל הכל עובד פיקס.
אבל כשאני מנתב אותו לשלוח לי את המיילים לאאוטלוק (המייל תחת האחסון שלי) הוא שולח לי את המייל באנגלית במקום בעברית.

מישהו יודע אולי איך לטפל בזה?

תודה

Acid-Burn 04-04-10 11:56

לאף אחד אין מושג?

SniR-S 04-04-10 13:12

נסה להגדיר את הקידוד כ UTF-8

mrns 04-04-10 13:15

אני לא הבנתי הוא שולח לך את זה בגיבריש או בתרגום לאנגלית
תכניס קידוד בעברית

HTML קוד:

$headers .= 'Content-type: text/html; charset=windows-1255' . "\r\n";

Acid-Burn 04-04-10 13:23

שניה אני ינסה.
זה שולח לי את המילים באנגלית.
אם רשמתי בטופס אבגד
אני מקבל במייל
tcds

מבין?

VladK 06-04-10 20:35

למה שלא תראה את הקוד? יחסוך מאיתנו את הניחושים...

Acid-Burn 07-04-10 01:10

קוד:

<?php
 session_start();
 
 include("db-info.php");
 $link = mysql_connect($server, $user, $pass);
 if(!mysql_select_db($database)) die(mysql_error());

 include("session.inc.php");
 include("loadsettings.inc.php");
?>


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="he" lang="he" dir="rtl">

<head>
<title><? echo $webtitle; ?> - &#228;&#250;&#231;&#225;&#248;&#229;&#250;</title>
<link rel="stylesheet" href="style.css" type="text/css" />

<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<meta name="description" content="<? echo $description; ?>" />
<meta name="keywords" content="<? echo $keywords; ?>" />

</head>


<body link=#336699 vlink=#336699 alink=#336699>
<?php include("header.php"); ?>
<?php
// ÷&#229;&#236;&#232; &#224;&#250; &#228;&#238;&#233;&#227;&#242; &#229;&#238;&#242;&#225;&#233;&#248; &#224;&#229;&#250;&#229; &#236;&#238;&#249;&#250;&#240;&#233;&#237;
$name = $_POST['name'];
$sendFrom = $_POST['sendFrom'];
$subject = $_POST['subject'];
$message = $_POST['message'];

// &#228;&#238;&#225;&#240;&#228; &#249;&#236; &#228;&#238;&#233;&#233;&#236; &#249;&#250;÷&#225;&#236;&#229; &#235;&#250;&#226;&#229;&#225;&#228; &#236;&#249;&#233;&#238;&#229;&#249; &#225;&#232;&#229;&#244;&#241; - &#228;&#231;&#236;&#233;&#244;&#229; &#224;&#250; &#228;&#238;&#233;&#233;&#236; &#236;&#249;&#236;&#235;&#237;
$to = '***@gmail.com';
$subject = "$subject";
$message = "$name &#235;&#250;&#225;: $message";
$headers = "From: $sendFrom";

if($name == '' || $sendFrom == '' || $subject == '' || $message =='')
 {
        echo("<br><br><center>&#233;&#249;&#240;&#237; &#244;&#248;&#232;&#233;&#237; &#231;&#241;&#248;&#233;&#237; &#225;&#232;&#229;&#244;&#241; . </center>");
 }
elseif ($sendFrom == $subject || $sendFrom == $message || $message == $subject)
 {
        echo("<br><br><center>&#224;&#233;&#239; &#225;&#224;&#244;&#249;&#248;&#229;&#250;&#234; &#236;&#235;&#250;&#229;&#225; &#225;&#249;&#240;&#233; &#249;&#227;&#229;&#250; &#232;÷&#241;&#232; &#230;&#228;&#228; .  </center>");
 }
else
 {
        mail($to, $subject, $message, $headers);
        echo("<br><br><center>&#228;&#229;&#227;&#242;&#250;&#234; &#240;&#249;&#236;&#231;&#228; &#225;&#228;&#246;&#236;&#231;&#228; . </center>");
 }
?>
<center>
<!-- code from sekindo -->
<script type= "text/javascript" language="javascript" src="http://live.sekindo.com/live/liveView.php?s=5713"></script>
<!-- code from sekindo -->
</center>
</LABEL>



<?php  include("footer.php"); ?>


</div>
</center>


</body>

</html>


VladK 07-04-10 09:34

תנסה להוסיף:
PHP קוד:

$headers .= 'Content-type: text/html; charset=windows-1255' "\r\n"

מתחת לשורה:
PHP קוד:

$headers "From: $sendFrom"


Acid-Burn 10-04-10 16:22

אוקיי אני לאט לאט מתקדם עם זה :)

הבעיה עכשיו שהכל עובד מעולה.

חוץ מדבר אחד אם ה נושא נכתב בעברית הוא לא מציג נושא במייל אם הנושא נכתב במספרים ואנגלית נשלח מצויין.

יש למישהו מושג?

תודה

Shay Ben Moshe 10-04-10 16:51

אני מציע לך לעבוד בUTF8 ולא בANSI (במקרה הזה WINDOWS 1225) יחסוך לך הרבה דברים כאלו.


כל הזמנים הם GMT +2. הזמן כעת הוא 16:29.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ