0

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

http://pastebin.com/hf675sex

http://pastebin.com/hYYsZqKs

2
  • All links say "This page has been removed". – DinoCoderSaurus Oct 13 '16 at 13:15
  • oops! I have figured out so removed the links!!! thanks! – Ichi_Lamuchy Oct 13 '16 at 18:48
0

Thanks I figured out as I was not fully understood how many argument will be passed to render function!

1
  • 1
    Please consider adding specific info to the answer then accepting it (after the requisite two day wait). This info could be of value to other students and accepted answers "bubble to the top". – DinoCoderSaurus Oct 14 '16 at 14:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .