Pset7, I cannot display result of quote. Am I misunderstanding concept of render function? Quote form is displayed, just not result... Could anyone gives me any advises, please?
quote: if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["symbol"])) { apologize("You must provide symbol for quote."); } $stock = lookup($_POST["symbol"]); if ($stock == false) { apologize ("it is not valid symbol"); } render("quote_result.php", ["title" => "Quote"]); }
quote_result: print("Symbol : ". $stock["symbol"]); print("Name : ". $stock["name"]); print("Price : ". number_format($stock["price"], 2)) // 2 decimal point at the moment//
quote code: http://pastebin.com/AqsDsqLg