I have started with PHP and HTML and would like to execute simple code with three drop-down lists (select tag). But when I make selection from one, the other two selected values disappear. Should I save values when submitting them and then echo. If yes, how can I do it. Sample code will be appreciated.\[code\] <?php // formtest_2.php $name_vid = $name_type = $name_model = "";if (isset($_POST['vid']))$name_vid=($_POST['vid']);else $name_vid="no";if (isset($_POST['type']))$name_type=sanitizeString($_POST['type']);else $name_type="no";if (isset($_POST['model']))$name_model=sanitizeString($_POST['model']);else $name_model="no";echo <<<_END<html> <head> <title>Form Test Two</title> </head> <body> Make your selection:<form action="formtest_2.php" method="post"> <select name="vid" size="1"> <option value="" selected>Product</option> <option value = "http://stackoverflow.com/questions/14039015/apple">apple</option> <option value = "http://stackoverflow.com/questions/14039015/cherry">cherry</option> <option value = "http://stackoverflow.com/questions/14039015/orange">orange</option> </select><input type="submit"/><br /> <select name="type" size="1"> <option value="" selected>Color</option> <option value = "http://stackoverflow.com/questions/14039015/green">green</option> <option value = "http://stackoverflow.com/questions/14039015/red">red</option> <option value = "http://stackoverflow.com/questions/14039015/orange">orange</option> </select><input type="submit"/><br /> <select name="model" size="1"> <option value="" selected>Model</option> <option value = "http://stackoverflow.com/questions/14039015/1-a">1-a</option> <option value = "http://stackoverflow.com/questions/14039015/2-b">2-b</option> <option value = "http://stackoverflow.com/questions/14039015/3-c">3-c</option> </select><input type="submit"/><br /> </form> </body></html>_END;echo "Your selection is: $name_vid and $name_type and $name_model"; function sanitizeString($var){ $var = stripslashes($var); $var = htmlentities($var); $var = strip_tags($var); return $var;}?>\[/code\]