Gossamer Forum
Home : Products : DBMan : Customization :

Code Logic - HTML.PL

Quote Reply
Code Logic - HTML.PL
I tried adding the following code in the HTML.PL:
if ($db_uid eq "default") {
&html_search_again;
}
else {
&html_footer;
}
For some reason the first "if" condition never works even when the uid = "default". What am I doing wrong?
Quote Reply
Re: Code Logic - HTML.PL In reply to
The reason it is not working is because you are using the wrong variable for the userid.

Try this:

Code:
if ($db_userid eq "default") {
&html_search_again;
}
else {
&html_footer;
}

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
Quote Reply
Re: Code Logic - HTML.PL In reply to
Fantastic! It works perfectly now.

Thank you very much!
Quote Reply
Re: Code Logic - HTML.PL In reply to
Great! Glad it worked.

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