Questions tagged [quote.php]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
75 views

Pset 7, why does my "quote" template not render before apology?

I'm trying to understand why my template, even though copied from a working "login" html and py file, doesn't render for "quote". It just goes straight to return apology.. while the same code works ...
1
vote
1answer
116 views

I am working on the quotes' section of the pset7. I always get this error which I am unable to understand?

quote.php <?php // configuration require("../includes/config.php"); if ($_SERVER["REQUEST_METHOD"] == "GET") { //do something // else render form render(".....
0
votes
0answers
97 views

I am getting stuck on quotes.php. I am getting this invalid message?

quotes.php <?php // configuration require("../includes/config.php"); if ($_SERVER["REQUEST_METHOD"] == "GET") { //do something // else render form render("...
0
votes
1answer
104 views

Undefined variable in veiws/quote.php

public/quote.php <?php // configuration require("../includes/config.php"); if ($_SERVER["REQUEST_METHOD"] == "GET") { // else render form render("../views/quote.php", ["title"...
0
votes
1answer
118 views

pset 7, quote: quote.php doesn't render second view

My controller quote.php doesn't work properly. The first view is rendered correctly, but upon submitting a stock symbol (‘FREE’ like in the spec’s example) on this page, the page just reloads instead ...
0
votes
1answer
102 views

Pset 7, quote.php refreshing the page

I'm doing pset7, quote.php. I created the main logic in quote.php which is in public directory and (if lookup function sends an associative array) then sending the information to other quote.php which ...
0
votes
2answers
102 views

pset7: displaying apology for messups

So I'll start easy with quote.php. It works if I give the correct symbol, and correctly apologizes if i leave the form blank. But any invalid symbols seems to allow for render to work on quote_display....
1
vote
1answer
1k views

pset7 quote form and display

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 ...
4
votes
2answers
1k views

How does render work in Pset7?

I am working on quote.php. I am trying to get a template to display the value of a stock by taking the associative array from $stock=lookup($_POST... and passing it to render, but I'm not quite ...
0
votes
2answers
250 views

Pset 7 Double Question--Jpegs and "Undefined Index" for quote.php

I had two questions about pset7 and thought I'd post them together. The first regards styling. Just for fun, I wanted to try changing the CS50 Finance logo that appears on the top of each webpage to ...