Python Forum
Displaying search results
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Displaying search results
#75
how do I get the isbn, though? What am I doing to trigger the event? For instance, for search, it's when I click the search button, then the code in python tells it to execute search.

How do I get it to execute the SQL?

no right now the link is just to the "book" page. I didn't use the isbn since I figured we didn't have to do that with the URL. We have to do it with a JSON request but that's something I'll worry about later.

I have one week left to finish this I'm getting really nervous. All I have to do is figure out how to get the information I already have into this function.

Surely there's got to be an easy way, right?

The way you are explaining has me very confused.

@app.route("/book", methods=["GET", "POST"])
def book():
    title = request.form.get("book")
    author = ""
    year = ""
    reviews = ""
    return render_template("book.html", title=title, author=author, year=year, reviews=reviews)

basically how do i get access to the http event?
Reply


Messages In This Thread
Displaying search results - by card51shor - Jun-16-2020, 05:37 AM
RE: Displaying search results - by ndc85430 - Jun-16-2020, 06:04 AM
RE: Displaying search results - by card51shor - Jun-16-2020, 06:06 AM
RE: Displaying search results - by ndc85430 - Jun-16-2020, 06:14 AM
RE: Displaying search results - by card51shor - Jun-16-2020, 06:19 AM
RE: Displaying search results - by ndc85430 - Jun-16-2020, 06:20 AM
RE: Displaying search results - by card51shor - Jun-16-2020, 06:23 AM
RE: Displaying search results - by ndc85430 - Jun-16-2020, 06:24 AM
RE: Displaying search results - by card51shor - Jun-16-2020, 06:26 AM
RE: Displaying search results - by ndc85430 - Jun-16-2020, 06:29 AM
RE: Displaying search results - by card51shor - Jun-16-2020, 06:36 AM
RE: Displaying search results - by buran - Jun-16-2020, 06:49 AM
RE: Displaying search results - by card51shor - Jun-16-2020, 06:54 AM
RE: Displaying search results - by ndc85430 - Jun-16-2020, 07:11 AM
RE: Displaying search results - by card51shor - Jun-16-2020, 07:20 AM
RE: Displaying search results - by ndc85430 - Jun-16-2020, 07:28 AM
RE: Displaying search results - by card51shor - Jun-16-2020, 07:34 AM
RE: Displaying search results - by ndc85430 - Jun-16-2020, 07:44 AM
RE: Displaying search results - by card51shor - Jun-16-2020, 07:58 AM
RE: Displaying search results - by ndc85430 - Jun-16-2020, 08:34 AM
RE: Displaying search results - by card51shor - Jun-16-2020, 03:29 PM
RE: Displaying search results - by ndc85430 - Jun-16-2020, 08:01 PM
RE: Displaying search results - by card51shor - Jun-16-2020, 08:36 PM
RE: Displaying search results - by card51shor - Jun-17-2020, 12:41 AM
RE: Displaying search results - by SheeppOSU - Jun-16-2020, 07:40 AM
RE: Displaying search results - by card51shor - Jun-16-2020, 07:51 AM
RE: Displaying search results - by ndc85430 - Jun-16-2020, 07:56 AM
RE: Displaying search results - by buran - Jun-16-2020, 07:50 AM
RE: Displaying search results - by buran - Jun-16-2020, 07:56 AM
RE: Displaying search results - by SheeppOSU - Jun-16-2020, 08:37 AM
RE: Displaying search results - by pyzyx3qwerty - Jun-16-2020, 04:26 PM
RE: Displaying search results - by pyzyx3qwerty - Jun-17-2020, 02:01 AM
RE: Displaying search results - by card51shor - Jun-17-2020, 02:41 AM
RE: Displaying search results - by ndc85430 - Jun-17-2020, 04:35 AM
RE: Displaying search results - by card51shor - Jun-17-2020, 05:18 AM
RE: Displaying search results - by ndc85430 - Jun-17-2020, 05:29 AM
RE: Displaying search results - by card51shor - Jun-17-2020, 05:41 AM
RE: Displaying search results - by ndc85430 - Jun-17-2020, 05:42 AM
RE: Displaying search results - by card51shor - Jun-17-2020, 05:51 AM
RE: Displaying search results - by ndc85430 - Jun-17-2020, 06:18 AM
RE: Displaying search results - by card51shor - Jun-17-2020, 06:32 AM
RE: Displaying search results - by ndc85430 - Jun-17-2020, 06:33 AM
RE: Displaying search results - by card51shor - Jun-17-2020, 06:35 AM
RE: Displaying search results - by ndc85430 - Jun-17-2020, 06:43 AM
RE: Displaying search results - by card51shor - Jun-17-2020, 06:44 AM
RE: Displaying search results - by ndc85430 - Jun-17-2020, 07:28 AM
RE: Displaying search results - by card51shor - Jun-17-2020, 07:38 AM
RE: Displaying search results - by ndc85430 - Jun-17-2020, 07:49 AM
RE: Displaying search results - by card51shor - Jun-17-2020, 07:55 AM
RE: Displaying search results - by ndc85430 - Jun-17-2020, 08:06 AM
RE: Displaying search results - by card51shor - Jun-17-2020, 08:12 AM
RE: Displaying search results - by ndc85430 - Jun-17-2020, 08:15 AM
RE: Displaying search results - by card51shor - Jun-17-2020, 08:18 AM
RE: Displaying search results - by SheeppOSU - Jun-17-2020, 03:22 PM
RE: Displaying search results - by card51shor - Jun-17-2020, 04:04 PM
RE: Displaying search results - by ndc85430 - Jun-17-2020, 05:29 PM
RE: Displaying search results - by card51shor - Jun-17-2020, 05:44 PM
RE: Displaying search results - by ndc85430 - Jun-18-2020, 04:23 AM
RE: Displaying search results - by card51shor - Jun-18-2020, 04:54 AM
RE: Displaying search results - by ndc85430 - Jun-18-2020, 05:01 AM
RE: Displaying search results - by card51shor - Jun-18-2020, 05:33 AM
RE: Displaying search results - by ndc85430 - Jun-18-2020, 05:43 AM
RE: Displaying search results - by card51shor - Jun-18-2020, 05:52 AM
RE: Displaying search results - by ndc85430 - Jun-18-2020, 05:56 AM
RE: Displaying search results - by card51shor - Jun-18-2020, 05:58 AM
RE: Displaying search results - by ndc85430 - Jun-18-2020, 05:59 AM
RE: Displaying search results - by card51shor - Jun-18-2020, 06:35 AM
RE: Displaying search results - by ndc85430 - Jun-19-2020, 05:40 AM
RE: Displaying search results - by card51shor - Jun-19-2020, 07:01 AM
RE: Displaying search results - by card51shor - Jun-19-2020, 09:59 PM
RE: Displaying search results - by ndc85430 - Jun-20-2020, 05:47 AM
RE: Displaying search results - by card51shor - Jun-20-2020, 07:43 AM
RE: Displaying search results - by card51shor - Jun-21-2020, 12:38 AM
RE: Displaying search results - by ndc85430 - Jun-21-2020, 05:06 AM
RE: Displaying search results - by card51shor - Jun-21-2020, 05:25 AM
RE: Displaying search results - by ndc85430 - Jun-21-2020, 05:44 AM
RE: Displaying search results - by card51shor - Jun-21-2020, 05:45 AM
RE: Displaying search results - by ndc85430 - Jun-21-2020, 05:47 AM
RE: Displaying search results - by card51shor - Jun-21-2020, 05:48 AM
RE: Displaying search results - by ndc85430 - Jun-21-2020, 05:56 AM
RE: Displaying search results - by card51shor - Jun-21-2020, 06:00 AM
RE: Displaying search results - by ndc85430 - Jun-21-2020, 06:00 AM
RE: Displaying search results - by card51shor - Jun-21-2020, 06:08 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020