//php // define variables and set to empty values $SymbolErr = $categoryErr = ""; $Symbol = $category = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["Symbol"])) { $SymbolErr = "Symbol is required"; } else { $Symbol = test_input($_POST["Symbol"]); } if (empty($_POST["category"])) { $categoryErr = "Category is required"; } else { $category = test_input($_POST["category"]); } } //?>