I couldn't find any bugs in my code. I followed exactly the same method as register and Login but it still doesn't render quote_form.php. enter image description here

In quote_form.php, I had put this statement as well Can anyone tell me why it keep on showing this whenever I start apache?

"Log In"]); } else if ($_SERVER["REQUEST_METHOD"] == "POST") { $stock = lookup($_POST["symbol"]); if ($stock == false) { apologize("Please insert a valid stock"); } else { render("stock_price.php", ["title" => "stock_price"]); } } ?>

  • Are you sure you're using the 2017 version? The 2017 version uses Python rather than PHP. See docs.cs50.net/2017/x/psets/7/pset7.html for more. Commented May 29, 2017 at 1:45
  • No, it is still in 2016 version as I started around September 2016.
    – user7519
    Commented May 30, 2017 at 15:51

1 Answer 1


Actually what I did wrong is the php tag at the most top where I should write

Thanks everyone.

You must log in to answer this question.

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