| Autor | Zpráva | ||
|---|---|---|---|
| Daniel47 Profil |
Ahojte všichni!
Potřebují zakázat psaní html tágu do komentářích a nevím jak to udělat. Mám na mysli takovou bezpečnou malou diskusi. Kód pro úpravu: <?php header("Content-Type: text/html; charset=windows-1250"); $jmeno = $_POST['jmeno']; $text = $_POST['text']; $datum = Date("j/m/Y - - H:i:s", Time()); $data = file_get_contents("data-diskuze.inc"); $f =fopen("data-diskuze.inc", "w"); //otevření souboru: data-diskuze.inc fwrite($f, '<dd><b>'.$jmeno.': '.$datum.' </b><br />'.$text.'</dd><hr size="5px" color="blue" />'.$data); fclose($f); header('Location: www.dettube-cz.euweb.cz/daniel.php'); ?> |
||
| Freak Profil * |
#2 · Zasláno: 24. 4. 2019, 12:52:08
Daniel47:
Použij: strip_tags($text) |
||
| Daniel47 Profil |
#3 · Zasláno: 24. 4. 2019, 13:03:15
Freak:
Nefunguje mi to.Prosím pomoc. |
||
| Taps Profil |
Daniel47:
<?php
header("Content-Type: text/html; charset=windows-1250");
$jmeno = $_POST['jmeno'];
$text = $_POST['text'];
$datum = Date("j/m/Y - - H:i:s", Time());
$data = file_get_contents("data-diskuze.inc");
$f =fopen("data-diskuze.inc", "w"); //otevření souboru: data-diskuze.inc
fwrite($f, '<dd><b>'.$jmeno.': '.$datum.' </b><br />'.strip_tags($text).'</dd><hr size="5px" color="blue" />'.$data);
fclose($f);
header('Location: www.dettube-cz.euweb.cz/daniel.php');
?> |
||
| Kajman Profil |
#5 · Zasláno: 24. 4. 2019, 16:54:20
Ještě je potřeba ošetřit jméno.
|
||
|
Časová prodleva: 7 let
|
|||
0