my html code
<form action = "search.php" method="get">
<input type="text" name="destination">
<input type="submit" name="submit" value="submit">
</form>
my php code
<?php
if(isset($_GET['submit'])){
echo $_GET['destination'];
}
?>
MY URL
http://localhost/vb/guest/search.php?destination=USA
now i want that if i change the value of the variable then it will remain same that means if destination=canada
or any other string then it will set the value USA
again. please help, i m new to PHP