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

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

somebody 04-03-06 01:42

אתה בטוח ששמת קידוד בשליפה?
כי אם רואים בעברית במסד אז הבעיה היא בשליפה, אז או שלא שמת קידוד (תגי MATA) או אם יש כזה דבר אז קידוד עברי ב PHP.

TAsraf 04-03-06 01:52

תוכלו לתקן לי את הקוד הזה בבקשה?
כי אני עושה מה שאתם אומרים ואני לא חושב שאני עוש הנכון אז תעשו אתם ותביאו לי בבקשה

d0rix 04-03-06 02:48

בבקשה תנסה:
קוד:

<html dir="rtl"> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<meta http-equiv="Content-Language" content="he">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>שלח מאמר</title>
</head>

<?php 

$title = $_POST["title"]; 
$poster = $_POST["poster"]; 
$text = $_POST["text"]; 
$date = date("d/m/Y - H:i:s"); 

if ($_POST["posted"] == 1) { 
if(!$title) { 
die("<script type=\"text/javascript\">window.alert(\"שגיאה: חובה לכתוב כותרת!\"); history.go (-1);</script>"); 

if(!$poster) { 
die("<script type=\"text/javascript\">window.alert(\"שגיאה: חובה לציין את שם הכותב!\"); history.go (-1);</script>"); 

if(!$text) { 
die("<script type=\"text/javascript\">window.alert(\"שגיאה: חובה לציין תוכן!\"); history.go (-1);</script>"); 
}

include "config.php";


mysql_query("INSERT INTO `topics` VALUES ('','$title','$poster','$text','$image','$date')") or die("שגיאה"); 

?> 
המאמר נשלח בהצלחה
<?php 
}
?> 
<body style="font-family: Arial">

<form action="post.php" method="post"> 
<input type="hidden" name="posted" value="1"> 
כותרת: <input type="text" name="title" size="20"><Br /> 
שמך: <input type="text" name="poster" size="20"><Br />
תמונה: <input type="text" name="image" size="20">&nbsp; <b><font size="2">(<a href="#" onClick="window.open('upload/upload.html','העלאת קבצים','scrollbars=no,location=no,status=no,height=130,width=400');" style="text-decoration: none">העלה</a>)</font></b><Br /> 
תוכן: <br /> 
<textarea cols=50 rows=10 name="text"></textarea><br /> 
<input type="submit" name="submit" value="פרסם מאמר"> 
</form>
</html>


satan 04-03-06 09:07

בנית את הדף עם פרונטפייג' ? כנראה זו הבעיה בגלל שזה שומר את הקידוד בצורה לא מתאימה לך(בקובץ עצמו, לא רק בתג מאטה)...

בדרך כלל כדי שזה יהיה טוב אז במסד אמור להיות "ג'ירביש"...

Cool_DuDu 04-03-06 09:34

תנסה להמיר את השפה במסד...

TAsraf 04-03-06 12:48

אני ישנה את הקידוד ל 2525?

Kuchi 04-03-06 14:57

תעשה ככה נשמה !
PHP קוד:

<html dir="rtl"> 
<meta http-equiv='Content-Language' content='he'>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>שלח מאמר</title>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1255'>
 
<?php 

$title 
$_POST["title"]; 
$poster $_POST["poster"]; 
$text $_POST["text"]; 
$date date("d/m/Y - H:i:s"); 

if (
$_POST["posted"] == 1) { 
if(!
$title) { 
die(
"<script type=\"text/javascript\">window.alert(\"שגיאה: חובה לכתוב כותרת!\"); history.go (-1);</script>"); 

if(!
$poster) { 
die(
"<script type=\"text/javascript\">window.alert(\"שגיאה: חובה לציין את שם הכותב!\"); history.go (-1);</script>"); 

if(!
$text) { 
die(
"<script type=\"text/javascript\">window.alert(\"שגיאה: חובה לציין תוכן!\"); history.go (-1);</script>"); 
}

include 
"config.php";


mysql_query("INSERT INTO `topics` VALUES ('','$title','$poster','$text','$image','$date')") or die("שגיאה"); 

?> 
המאמר נשלח בהצלחה
<?php 
}
?> 
<body style="font-family: Arial">

<form action="post.php" method="post"> 
<input type="hidden" name="posted" value="1"> 
כותרת: <input type="text" name="title" size="20"><Br /> 
שמך: <input type="text" name="poster" size="20"><Br />
תמונה: <input type="text" name="image" size="20">&nbsp; <b><font size="2">(<a href="#" onClick="window.open('upload/upload.html','העלאת קבצים','scrollbars=no,location=no,status=no,height=130,width=400');" style="text-decoration: none">העלה</a>)</font></b><Br /> 
תוכן: <br /> 
<textarea cols=50 rows=10 name="text"></textarea><br /> 
<input type="submit" name="submit" value="פרסם מאמר"> 
</form>
</html>


TAsraf 04-03-06 15:48

Kouchi נשמה זה הקוד של השליחה
הנה המערכת
http://tasraf.be/sys

Kuchi 04-03-06 16:00

אה
בכל מקרה תשנה במסד שיהיה לא hebrew תנסה ltin1 הזה ותנסה יהיה יותר כל אני חושב
ויהיה יותר קל אם תביא תקוד של הדף ולא תצוגתו |לב|

TAsraf 04-03-06 16:18

Kouchi אני ישלח לך באיסי
יש פה אנשים גנבים ת*ת


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

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