Autor | Zpráva | ||
---|---|---|---|
totirshe Profil * |
#1 · Zasláno: 9. 12. 2007, 05:34:56
function odstran($retazec) { $retazec = trim(strip_tags(strtolower(mysql_real_escape_string($retazec)))); echo $retazec; return $retazec; }; orez($email); function odstran($retazec) { $retazec = trim(strip_tags(strtolower(mysql_real_escape_string($retazec)))); return $retazec; }; orez($email); echo $email; zdravim, mozem sa opytat preco mi prva funkcia funguje a druha nie? dakujem :-* |
||
Alphard Profil |
#2 · Zasláno: 9. 12. 2007, 10:04:03
orez($email);
jestli je to jen přehlédnutí a má tam být odstran($email), má být správně $email = odstran($email); |
||
totirshe Profil * |
#3 · Zasláno: 9. 12. 2007, 14:48:43
$email = $_POST['email']; function email($retazec) { $retazec = trim(strip_tags(strtolower(mysql_real_escape_string($retazec)))); return $retazec; }; email($email); echo $email; $email = $_POST['email']; function email($retazec) { $retazec = trim(strip_tags(strtolower(mysql_real_escape_string($retazec)))); echo $retazec; }; email($email); sry omyl, takhle ted .. prva mi nejede, druha ano. proc? |
||
djlj Profil |
#4 · Zasláno: 9. 12. 2007, 14:51:46
V první vracíš hodnotu returnem, v druhé echem. V prvním případě tedy udělej echo email($email); nebo pokud bych dodžel tvůj zápis, tak:
$email=email($email); echo $email; |
||
totirshe Profil * |
#5 · Zasláno: 9. 12. 2007, 15:11:55
djlj :-* dekuji, nenapadlo mne ze je to funkce ne procedura :-D
a pritom to je tam 4x napsany ... |
||
Časová prodleva: 16 let
|
0