Answer to Question #212374 in C++ for keerthi

Question #212374

 amazon is building a way to help customers search reviews quicker by providing real time suggestions to search terms when the customer starts typing .give a minimum of two charters into the search filed the system will suggest at most three keywords from the review word repository as the customer to type in the reviews search bar the relevant keyword suggestions will update automatically




1
Expert's answer
2021-07-01T01:12:06-0400
<!-- Search Bar -->
<form action="{% url 'enc:search' %}" method="POST">
  {% csrf_token %}
  <input class="search" type="text" name="q" placeholder="Search">
  <input type="submit" value="Submit">
</form>


from django.shortcuts import render


def search (rqst):
    if rqst.method == "POST":
        title = request.POST.get("r")
        return render(rqst,'newTemplate.html', { 'title' : title })
    else:
        return render(rqst,'search_page.html')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS