View Single Post
ישן 16-10-10, 22:08   # 1
Insane
Winner
 
מיני פרופיל
תאריך הצטרפות: Feb 2007
מיקום: דרום
גיל: 32
הודעות: 605

Insane לא מחובר  

כתובת בעברית

אהלן,

יש לי לדוגמה את הקוד הבא:
http://badcompany.co.il/test/search.php

search.php
קוד:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl">
<head>
	<title>ניסיון</title>
	<meta http-equiv="Content-Language" content="he" /> 
	<meta http-equiv="Content-Type" content="text/html; charset=Windows-1255" />
</head>
<body>

<form action="result.php" method="GET">
<input type="text" name="words" size="53" /> <input type="submit" value=" בצע חיפוש " />
</forn>

</body>
</html>

result.php
קוד:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl">
<head>
	<title>ניסיון</title>
	<meta http-equiv="Content-Language" content="he" /> 
	<meta http-equiv="Content-Type" content="text/html; charset=Windows-1255" />
</head>
<body>

<?php
	$words = $_GET['words'];
	echo $words;
?>

</body>
</html>


מה שאני כותב, הוא מציג אותו על הדף ומשנה את הכתובת בהתאם לנכתב.

לדוגמה ואני כותב lost, הוא משנה את הכתובת ל:
http://badcompany.co.il/test/result.php?words=lost
עם הכיתוב lost.

אבל אם אני כותב אבודים, הוא משנה את הכתובת ל:
http://badcompany.co.il/test/result.php?words=%E0%E1%E5%E3%E9%ED
ועם הכיתוב אבודים.

איך ניתן לתקן את הכתובת? שבמקום %E9%ED.. תוצא המילה "אבודים".

תודה לעוזרים

Last edited by Insane; 16-10-10 at 22:26..
  Reply With Quote