Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Search and Result page displaying records on Load

Participant ,
Feb 09, 2011 Feb 09, 2011

Copy link to clipboard

Copied

Hi. I am developing a Search Page with the Results displaying on the same page. When you navigate to the Search page, it opens autom
atically displaying all the records in the database. This happens before the user has typed anything in and pressed the search butto
n. How do I stop the results from displaying, before the search is done or when the page loads.
I have been through the tutorials but I cannot find the solution.
Thanks.

TOPICS
Server side applications

Views

364
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 09, 2011 Feb 09, 2011

Copy link to clipboard

Copied

You need to add conditional logic that checks if the page was opened via a form submit. If it was, execute the query and display the results. If not, present the form for user input.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 09, 2011 Feb 09, 2011

Copy link to clipboard

Copied

LATEST

Hi Bregent

For some reason I can't reply on the forum.

Excuse my ignorance, but how do I add conditional logic, or learn how to.

Kind Regards

Peter

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines