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.
May 22, 1999, 9:29 AM
Veteran / Moderator (8669 posts)
May 22, 1999, 9:29 AM
Post #2 of 3
Views: 1818
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
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
May 22, 1999, 3:40 PM
Novice (8 posts)
May 22, 1999, 3:40 PM
Post #3 of 3
Views: 1825
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>
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>