Gossamer Forum
Home : Products : DBMan : Customization :

Search needing to login

Quote Reply
Search needing to login
I put up a simple keyword search box on my main page and when I click to do the search it wants to the user to login. Even though I told it to use the '?uid=default'. Tag at the end. Any ideas? Thanks in advance.
Quote Reply
Re: Search needing to login In reply to
First, check your permissions in the .cfg file to be sure that you are allowing a default user.

Second, it's better to use a hidden tag

name="uid" value="default"

in your form than to add the ?uid=default to the URL for db.cgi. Also, be sure to add a hidden field

name="db" value="default"

to your form, changing default if your .cfg file has a different name.


------------------
JPD





Quote Reply
Re: Search needing to login In reply to
Thanks! It's not wanting to login-in now. But now I get the error: "Error: Unknown Action - The database program received a command that it did not understand." And I don't understand the third part you told me. The part about changing "default"?!?!

Here is a copy of the exact code I'm using:

<form method=post action="http://www.BashBrother.com/cgi-bin/baseball.cgi">
<input type=hidden name ="search" value ="search">
<input type=hidden name ="uid" value ="default">

<input type=text name="searchtext" size=25>
<INPUT type="Submit" Value=" Start Search ">
</FORM>