Gossamer Forum
Home : Products : DBMan : Customization :

Rookie Problem

Quote Reply
Rookie Problem
Hi all,
I feel pretty silly asking this question, but for some reason I can't get this to work... I admit I'm still in Rookie status, but until now I thought I could figure this one out :>

Db is installed and running fine from the back end administration. So now I would like to start calling records from a static HTML page. I clipped this from the DBMan Database Administrator Unofficial Help/FAQ.:

Simple Keyword Search Form (static page)
<CENTER>Search by keyword<P>
<FORM ACTION="/cgi-bin/dbman/db.cgi" method="GET">
<INPUT TYPE="hidden" name="db" value="default">
<INPUT TYPE="hidden" name="uid" value="default">
<INPUT TYPE="text" name="keywords" size="30">
<INPUT TYPE="submit" name="view_records" value="Search">
</form></CENTER>

And I keep getting to the admin logni screen when I submit keywords.

Now I tried to cover all bases before I came to the forum.
My permissions are set according to the readme file:
* Users must log on to add, remove, modify but anyone can view without logging on:
set $auth_no_authenticaion = 0;
$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);
$auth_modify_own = 0;
$auth_view_own = 0;
(this may be where I am wrong)

Here is where I'm doing my test:
http://www.barbella.net/scripts/dbase

Thanks so much for any help
Dave


Quote Reply
Re: Rookie Problem In reply to
You have to add a hidden field:

Code:

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


Hope this helps.

Regards,

Quote Reply
Re: Rookie Problem In reply to
Adding the field that Eliot suggested will allow the search to work if the user hits the "enter" key instead of clicking the Submit button.

I went to your page and what I saw in the source code was:

<input type="hidden" name="ID" value="default">

You need to change ID to uid.



JPD
http://www.jpdeni.com/dbman/