Gossamer Forum
Home : Products : DBMan : Customization :

form to database

Quote Reply
form to database
Thank you for providing the nice DBman database system and the helpful support forum. I installed the DBman onto my website, and it is working properly and happy with it. I am wondering if anyone can be kind enough to help me figure this one out.

I am trying to find out if a form page (form.html) can work together with the DBman.

1. I want any users to type in their:
- Name
- Email
- Company
- Tel

2. What kind of FORM or POST code do I need to insert onto the form.html page?

3. When the user submits their information, I want the information to be emailed to 123@123.com and be inserted to the database. How would the ID number be affected by using a form page? Does it automatically create a unique one?

Thank you for your help.
Quote Reply
Re: [jsurfers] form to database In reply to
You can use dbman for this... simply have a link on your home page (providing you don't require authorization/log in first):

http://www.yourdomain.com/cgi-bin/dbman/db.cgi?user=default&add_form=1

Then use the "email to admin" mod to have a copy of the record emailed to you or whomever.

See this link:

http://redundantcartridge.com/dbman/

to access the unofficial dbman FAQ - this is where you'll find the mods. Also check out the "resources" section of this website (gossamer-threads.com)

Last edited by:

Watts: Sep 12, 2003, 8:48 AM
Quote Reply
Re: [Watts] form to database In reply to
Aloha Watts, thank you very much for replying to my topic. I tried the link as you provided but this still took me to the original Logon page. Do I have to edit the code in html.pl to not require authorization/log in first? How do I do this?

PS- I got the "email to admin" email working.
Quote Reply
Re: [jsurfers] form to database In reply to
In default.cfg find the following little bits and change the authorization to 1 and allow default user to 1

Code:
# Authorization Options
# --------------------------------------------------------
# No Authentication? (1 = "there is no authentication", 0 = "there is authentication")
# If you choose no authentication, then set the permissions of what
# people can do with: @auth_default_permissions below.
$auth_no_authentication = 1;

And

Code:
# Allow a default user? This means you can specify a user via the URL
# and skip the logon process. Use this to allow people to search without
# logging on, but require log in if they want to add/modify/remove etc.
# (1 = "yes", 0 = "no")
$auth_allow_default = 1;

# Default permissions used if there is no authentication, or for a default
# user. (View, Add, Delete, Modify, Admin), 1 = enable, 0 = disable.
@auth_default_permissions = (1,1,1,1,0);

Now, of course, this really assumes that you don't care who posts to your database....

.

Last edited by:

Watts: Sep 12, 2003, 1:37 PM
Quote Reply
Re: [Watts] form to database In reply to
It works Watts! Thank you very much. Have a great weekend.