I'm very confused about the pset specification regarding quote.php. According to Zamyla, we first design a template, quote_form.php, asking the user about the symbol they want to look up. Then, we create a file in public, quote.php, where we declare variables for stock and s for an associative array
$stock = lookup($_POST["symbol"]); $s = lookup("AAPL");
Then, we create another template, quote.php, where we display quote (how do we do that?), ensure the stock is valid and print its price.
Is my understanding of this function correct? Please correct me if I'm wrong.
I tried the above and I get a blank page when I try to open pset7/quote.php in a browser.