Gossamer Forum
Home : Products : DBMan : Installation :

Ahh Help! I've screwed up my html.pl

Quote Reply
Ahh Help! I've screwed up my html.pl
I'm getting this error now:

CGI ERROR==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: syntax error at ./html.pl line 480, near "$face size"
Unmatched right bracket at ./html.pl line 1528, at end of line
syntax error at ./html.pl line 1528, near "}"

Can anyone please look at:

www.bestweb.net/~cyborgny/tob/cgi-bin/dbman/html.pl

I was only trying to add a field (I know big mistake).

Thanks
Quote Reply
Re: Ahh Help! I've screwed up my html.pl In reply to
Are you referring to the new variables you added in terms of $face size?? If so, you cannot add a variable within a variable. The best thing for you to do use the following:

Code:
$face = 'font face="Verdana,Arial,Helvetica';
$font = 'font face="Verdana,Arial,Helvetica" size="2"';
$font_title = 'font face="Verdana, Arial,Helvetica" size="4"';
$font_error = 'font
face="Verdana,Arial,Helvetica" color="red"';

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: Ahh Help! I've screwed up my html.pl In reply to
I don't think I was trying to add a new "variable" in that area (but I'll check). Is that at the top of html where the headers are? I was successful at adding new fields, and making them visible in the admin modify, but they weren't showing up in the search.

I think my problem lies in a missing

|;
}

around line 480 or 502

But I can't tell where. I'm really frightened I screwed up months of work. Ugh.

Thanks for any help.
Quote Reply
Re: Ahh Help! I've screwed up my html.pl In reply to
I looked at your script and I do not have time to copy the script to my server, then find the lines that are causing the problems. If you are referring to the end of sub routines, yes you need to have |; and } to close the sub-routine.

Please copy the lines 480 and 600, and then paste them in this Thread.

Yes, the codes I gave you are located near the top of the file. Use "Find" or "Search" option in NotePad or WordPad to find the codes.

Wink

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 13, 1999).]
Quote Reply
Re: Ahh Help! I've screwed up my html.pl In reply to
Eliot,

Your suggestions helped and I figured it out! Didn't mean to suggest you should go to all the trouble.

THANKS!

------------------
Catalyst for the new millenium