Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!empty($_GET['nazw']))
- {
- $nazw=$_GET['nazw'];
- }
- if (!empty($_GET['imie']))
- {
- $imie=$_GET['imie'];
- }
- setcookie('nazw',$nazw);
- setcookie('imie',$imie);
- print '
- <form action="liczba.php" method="get">
- Nazwisko: <input type="text" name="nazw" value="nazw">
- Imię: <input type="text" name="imie" value="imie">
- <input type="submit">
- </form>
- ';
- print("Wpisana wartość to:" .$_COOKIE['nazw']. " " .$_COOKIE['imie']);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement