Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] stripslashes problem ze znaczkiem
tomigram
post
Post #1





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 26.06.2008

Ostrzeżenie: (0%)
-----


Witam.
W bazie wystepuja dwa wpisy:

Shen'dralar
albo
Shen dralar

pod zmienna $realm wyswietlam:

$realm2=stripslashes($realm);

<input type=text value='$realm2' ...>

-wynikiem jest Shen (niepoprawnie)
albo
-wynikiem jest Shen dralar (poprawnie)

gdy dam
<input type=text value=$realm2 ...>
-wynikiem jest Shen'dralar (poprawnie)
albo
-wynikiem jest Shen (niepoprawnie)

Ten post edytował tomigram 16.07.2008, 18:35:16
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
barthpl
post
Post #2





Grupa: Zarejestrowani
Postów: 142
Pomógł: 35
Dołączył: 5.12.2006
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Problem powinien się rozwiązać jak dasz:
  1. <input type=text value="$realm2">
Go to the top of the page
+Quote Post
tomigram
post
Post #3





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 26.06.2008

Ostrzeżenie: (0%)
-----


$realm2=stripslashes($realm);

echo'<td class=dane><input value=" '.$realm2.' " type=text name=lvl></td>';

zle buduje stringi..
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.08.2025 - 06:44