witam, może ktoś podać przykład gdzie wpisuje w pole jakiś text który mi wyswietli po submit, a po f5 mi go juz nie pokaze?
np if($_GET['text'] > ''){
echo 'costam';
}
0
2
Google Ci zbanowali? :P https://stackoverflow.com/questions/1251582/beautiful-way-to-remove-get-variables-with-php
Jeżeli chodzi o POST (a nie get) to https://en.wikipedia.org/wiki/Post/Redirect/Get
0
coś al'a to ? :
// Metoda GET. Dla POST'a zamień tylko GET'y i gotowe.
echo "<input type='text' name='valueX'".(isset($_GET['valueX']) && !empty($_GET['valueX']) ? ' value="'.$_GET['valueX'].'"': '').">";