Autor | Zpráva | ||
---|---|---|---|
VASEK Profil * |
#1 · Zasláno: 7. 9. 2007, 13:26:00
Zdravim, prosim o radu:
mam formular <textarea></textarea> a kdyz v tomto formulari vlozim radek [ENTER] tak se do databaze ulozi tak jak jsem zadal. a v tom je problem, potreboval bych tento [ENTER] odstranit pred ulozenim do DB. je to nejak mozny? prosim o radu, dekuji. Vasek |
||
Mireczech Profil |
#2 · Zasláno: 7. 9. 2007, 13:42:26
string strtr ( string $str, string $from, string $to )
string strtr ( string $str, array $replace_pairs ) kde znak noveho radku je ' ' |
||
VASEK Profil * |
#3 · Zasláno: 7. 9. 2007, 14:53:48
Tak jsem zkousel vsechy tyhle moznosti a nic:
$string = strtr ($string, "# #", "xxx"); $string = strtr ($string, " ", "xxx"); $string = strtr ($string, " ", "xxx"); ??????? |
||
VASEK Profil * |
#4 · Zasláno: 7. 9. 2007, 14:54:17
OPRAVA
Tak jsem zkousel vsechy tyhle moznosti a nic: $string = strtr ($string, "# #", "xxx"); $string = strtr ($string, " ", "xxx"); $string = strtr ($string, " ", "xxx"); ??????? |
||
VASEK Profil * |
#5 · Zasláno: 7. 9. 2007, 14:55:25
tak jeste jednou
Tak jsem zkousel vsechy tyhle moznosti a nic: $string = strtr ($string, "#zpetne lomitko a n#", "xxx"); $string = strtr ($string, "zpetne lomitko a n", "xxx"); $string = strtr ($string, " ", "xxx"); ??????? |
||
dracek Profil |
#6 · Zasláno: 7. 9. 2007, 15:04:31
$string = str_replace ("
", "", $string);
|
||
VASEK Profil * |
#7 · Zasláno: 7. 9. 2007, 15:12:09
nejde...
nejde ani str_replace zkousel jsem i toto: $string = Str_Replace(" ","@@", $string); a vysledek: text text text @@ @@ text text text. |
||
Mireczech Profil |
#8 · Zasláno: 7. 9. 2007, 15:19:00 · Upravil/a: Mireczech
FUNGUJE (overeno)
|
||
Časová prodleva: 17 let
|
0