/ Published in: PHP
If user enters city.php from footer.php, page will return certain string. If user enters independently, solution lets user see predefined string (in this case, 'your city').
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
footer.php: <ul> </ul> city.php: and solution: echo isset($_GET['city']) ? htmlentities($_GET['city']) : 'your city';