Gossamer Forum
Home : Products : DBMan : Customization :

Why my search button must be clicked?

Quote Reply
Why my search button must be clicked?
I have put up the search form on the html.pl so users can type the keyword on the mainpage instead of going to the search page, but why the user has to click on the "search" button to proceed to search? When the user type in the keyword and hit the enter, then the script produces "unknown command", can anyone help me.

I appriciate it very much.

Quote Reply
Re: Why my search button must be clicked? In reply to
Because clicking the "Search" button sends a command to the script to tell it what to do. If you don't want to click the search button, you have to have another way of sending the command.

Add the following to your form:

<input type="hidden" name="view_records" value="1">

Quote Reply
Thank you JP, It works! In reply to
Thanks so much, it works just fine.