Gossamer Forum
Home : Products : DBMan : Customization :

User Data Collection

Quote Reply
User Data Collection
I would like once the user has gotten their new account setup to automaticly go to a page where they enter their Name Address....and is collected in a database. Is there a mod for this?

------------------
Sherwin Sales@jse.net
Quote Reply
Re: User Data Collection In reply to
Sherwin,

You would like users to go directly to the add_form when they first access your database?

Use these codes in the sub html_home routine in your html.pl file. (Place them at the top of the routine.)

Code:
unless (($per_admin) or (!$per_add)) {

%rec=&get_record($db_userid);
unless (%rec) {
&html_add_form;
}
else {
$in{'modify'} = $db_userid;
return;
}
}

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited September 08, 1999).]

[This message has been edited by Eliot (edited September 08, 1999).]
Quote Reply
Re: User Data Collection In reply to
Sorry, That was not what I am looking for. I want to collect my users name address phone numbers in a database separate from where they enter the parts they want to sell that is listed to the public.

------------------
Sherwin Sales@jse.net
Quote Reply
Re: User Data Collection In reply to
You can use the same codes and instead of going to the add_form, you can create another sub-routine, like sub html_member_form, for them to add their names and user information into the membership database.

But make sure that in this new sub-routine that you point the form to the correct database and configuration file that you want them to add their information. The sub html_member_form can be a copy of the sub html_add_form, but with only the particular fields you are looking for them to add. You would have to create an additional html_record_form with only the fields they will add to the member database. You would also have to add some codes to the sub main routine in the db.cgi file.

If you want me to write some codes to do this, let me know.

Does this make sense?

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited September 08, 1999).]
Quote Reply
Re: User Data Collection In reply to
It makes sense what you are saying. The only thing is that I have made most of the changes now and I don't see where to point it to the member.db file to store the information. Could you point me in the right direction? BTW I have read most of your tutorial also.

------------------
Sherwin Sales@jse.net
Quote Reply
Re: User Data Collection In reply to
Okay...In the form you have in the html_member_form, make sure you have the following codes:

Code:
<form action="$db_script_url" method="POST">
<input type=hidden name="db" value="members">
<input type=hidden name="uid" value="$db_uid">
<input type=hidden name="add_record" value="1">

OTHER FORM STUFF

<INPUT TYPE="SUBMIT" NAME="add_record" VALUE="Submit Form">
<INPUT TYPE="RESET" VALUE="Clear Form"></center></p>

Replace the members with the name of your member.db file.

BTW: Which tutorial are you referring? I believe you mean JPDeni's (Carol's) tutorial at www.jpdeni.com/dbman/ .

Smile

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: User Data Collection In reply to
I made all the changes I thougt should have been made and it does not work. To refresh what I would like to happen. When a new user clicks on the Signup button on my front page. I want them first to go to a page where they enter their name address and phone number. Then go to the next page where they choose a user name. I have the auto password setup and running. But now, when the new user clicks Signup <a href="http://sherwingaddis.hypermart.net/cgi-bin/dbman/db.cgi?member_form">Sign Up</a> They go directly to the Log on screen and does not display the Information screen I would like them to go to first. The code is located at: http://www.jse.net/testsite/members_html_pl.txt http://www.jse.net/testsite/members_db_cgi.txt http://www.jse.net/testsite/members_default_cfg.txt

------------------
Sherwin Sales@jse.net