This topic is locked

dropdown list auto select

12/8/2010 8:42:01 PM
PHPRunner General questions
M
meirco author

Add Page
i have a drop down and i save the value from previous add record but the drop down always defaults to "Please Select"
this is the code in before record added
$_SESSION["category"] = $values["category"];
in the visual editor
in the edit as screen I have
default value $_SESSION["category"]

How do we make "category" populate with $_SESSION["category"] so the user doesn't need to select it if they want to keep the same category.
thanks