Gossamer Forum
Home : Products : DBMan : Installation :

linking to add form

Quote Reply
linking to add form
The default.cfg has:
$auth_signup = 1;
and when I try the link:
<a href="//www.server.com/cgi-bin/db.cgi?signup_form=1">
I get this message:
Sorry, That URL does not exist on this server! Please check over the spelling to make sure it's not a typo...
I'm not seeing a typo! Anyone have any suggestions? (Thanks in advance...)
Quote Reply
Re: linking to add form In reply to
I just found this:
if ($auth_signup) {
print qq|<$font>You can sign up for an account online right
<a href="$db_script_url?db=$db_setup&signup_form=1">here</a>.</font><P>
|;
}

Does what I have need to be this:
$db_setup&signup_form=1 ??
Quote Reply
Re: linking to add form In reply to
I see a typo....

Smile

You have:

Code:
<a href="//www.server.com/cgi-bin/db.cgi?signup_form=1">

I guess you are "hard-coding" the link rather than using the "global" variables in DBMAN to create the link. Smile

If you are hard-coding the link, it should be:

Code:
<a href="http://www.server.com/cgi-bin/db.cgi?signup_form=1">

OR

Code:
<a href="/cgi-bin/db.cgi?signup_form=1">

An easier method of linking to the "signup" form would be the following:

Code:
<a href="$db_script_url?db=$db_setup&signup_form=1">

IF the link is within DBMAN. If not, use either of the precedding hard coded examples.

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

[This message has been edited by Eliot (edited August 12, 1999).]

[This message has been edited by Eliot (edited August 12, 1999).]
Quote Reply
Re: linking to add form In reply to
geez. can you say duh.

While I'm here looking stupid....
I've tried adding the mailto: deal in a field for emails and haven't gotten it to work yet. Might as well as the expert now Smile

I haven't gotten far enough to look at the Resources/Addons, but is something available to allow uploading photos with the add form?

(If I ever quit doing goofy stuff, I'm sure I'll love this Smile
Quote Reply
Re: linking to add form In reply to
Yes...There is an upload mod available. The best site to get the upload mod is from the author herself, JPDeni....

I think that she was her upload mod available on her site at:

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

There should also be a link in the Resource Center.

About linking email, use these codes:

Code:
if ($rec{'Email'} =~ s/^mailto:/) {
print qq|<$font><b>Email Address:</b> <a href="$rec{'mailto:Email'}">$rec{'Email'}</a></font><br>|;

Change the bolded Email words with the field name you have for your Email field.

Don't worry about looking "stupid"...If JPDeni got a dime for every dumb thing I've said or done in these forums, she would be a rich woman! 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: linking to add form In reply to
I was close...not close 'nuff...I'll try the email code and take a look at the upload mod next. Thanks gazillions!
Quote Reply
Re: linking to add form In reply to
Eliot's suggestion about the email link will work if you include the words "mailto:" in your field with every record. If you just have an email address, it won't give you what you want. But this will:

Code:
if ($rec{'Email'} =~ /.+\@.+\..+/) {
print qq|<$font><b>Email Address:</b> <a href="mailto:$rec{'Email'}">$rec{'Email'}</a></font><br>|;
}

I haven't added the file-upload mod to the list of mods on the Resources yet. You can pick it up at http://www.jpdeni.com/dbman/mods.html

Be sure that everything else is working perfectly before you install this mod, though.


------------------
JPD





Quote Reply
Re: linking to add form In reply to
Thanks, Carol....Nice catch. Smile

Sorry for the confusion, amix.

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