Thanks for the codes, Jerry.
Bmxer,
I am using the following codes in the
translate.cgi file:
Code:
sub main {
# --------------------------------------------------------
local (%in) = &parse_form;
if ($in{'$db_key'}) {
&translate_it;
}
elsif ($in{$db_key} =~ /^\d+$/) {
my (%rec) = &get_record ($in{$db_key});
($rec{$db_key} eq $in{$db_key}) ?
&site_html_translate_form (%rec) :
&site_html_translate_failure ("Unkown Link ID: $in{$db_key}");
}
}
AFTER the codes you have for the libraries.
Then I just made the main part of the original translate.cgi into a sub-routine,
sub translate_it.
I am able to pass the id of the Link to the
translate.html template file, using the following URL:
Code:
http://www.myserver.com/cgi-bin/translate.cgi?ID=<%ID%>
in the
link.html template file. I get the translate main page (translate.html). However, when I submit the "form" with a language specified, I get an Internal Error Message. The syntax of the file is fine. Just not processing the right way. I even tried just taking out the text box and added a hidden field for
url, but that didn't work either. The value of the "url" appears in the source code, but when I click on Translate Resource, I get the Internal Server Error.
Hmmm....
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 20, 1999).]