I'm getting this error when I go into my Quote page on the website:
Fatal error: Invalid view: quote_form.php in /home/ubuntu/workspace/pset7/includes/helpers.php on line 155
Here's my quote_form.php (there are <> brackets where necessary, but when I type it here, it becomes invisible):
form action="quote.php" method="post"
<fieldset>
<div class="form-group">
<input name = "symbol" placeholder = "symbol" type = "text"/>
</div>
<div class= "form-group">
<input type="submit">
</div>
</fieldset>
/form
And this is my quote:
?php
require("../includes/config.php");
if ($_SERVER["REQUEST_METHOD"] == "GET")
{
render("quote_form.php", ["title" => "Quote"]);
}
if ($_SERVER["REQUEST_METHOD"] == "POST")
{
$stock = lookup($_POST["symbol"]);
if ($stock == false)
{
apologize("Stock isn't valid.");
}
else
{
render("quote2.php", [$price = number_format($stock["price"], 2, '.', '')]);
}
}
?>
Thanks for any help!