Gossamer Forum
Home : Products : DBMan : Installation :

Log on from outside script

Quote Reply
Log on from outside script
I am trying to set up a logon screen on my site that calls dbman from an html page. Could somebody please verify that I am using the right syntax for the value and name fields.
<form action="http://www.jobnyc.com/cgi/db/db.cgi"
method="post" name="form1">
<input type="hidden" name="db" value="resbank">
<input type="hidden" name="uid" value="userid"><div
align="center"><center><table border="0"> <tr><td><b>User ID:</b></td><td>
<input type="text" size="20" name="userid"> </td></tr><tr>
<td><b>Password:</b></td><td>
<input type="password" size="20" name="pw"> </td></tr></table>
</center></div><p align="center">
<input type="submit" name="login" value="Submit">
<input type="submit" name="logoff" value="Reset"> </p></form>
Should the value of db be "resbank" which is the name of my cfg file?
Should the value of UID be "userid" which is the name of my userid field or should it be " "? (it is also the key field)

thanks in advance
Quote Reply
Re: Log on from outside script In reply to
If you have multiple databases being used with one db.cgi file, then you do need to specify the hidden field for this field and also put the value as the name of the database. If you are using one database, then you DO NOT need to have this hidden field.

You should not use the hidden uid field.

For examples of using login forms from external web pages, go to the following web pages:

anthrotech.com/career/
anthrotech.com/sl90/cdbase/

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------