I understand the concept but am lost in the execution.
Currently in my links.html file I have
I changed it to
Figuring I need to make some changes in my jump.cgi, I removed
open (URL, "<$db_url_name") or &error ("unable to open url database: $db_url_name. Reason: $!");
while (<URL>) {
(/^$id$delim(.+)/o) or next;
chomp ($goto = $1);
last;
}
close URL;
$goto or &error ("Can't find link id: $id");
And replaced it with
open (URL, "<$db_email_name") or &error ("unable to open url database: $db_email_name. Reason: $!");
while (<URL>) {
(/^$id$delim(.+)/o) or next;
chomp ($goto = $1);
last;
}
close URL;
$goto or &error ("Can't find link id: $id");
figuring the jump needs to look up the Contact Email.
My logic comes from my links.cfg file which includes
The result I get is that it can't find link id.
One problem I see is that email.db has no data. That is probably why I get the can't find link id error.
Mu url.db has contains
1|mailto: omitted
2|mailto: omitted
3|mailto: omitted
4|mailto: omitted
up until I made some fields not required. Data is not being added as resources are being added.
...steven
MINI Links
BMW 318ti Registry
Currently in my links.html file I have
Code:
<a class="link" href="mailto:<%Contact Email%>"><%Contact Name%></a>I changed it to
Code:
<a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Contact Email%></a>Figuring I need to make some changes in my jump.cgi, I removed
Code:
# Let's get the URL. open (URL, "<$db_url_name") or &error ("unable to open url database: $db_url_name. Reason: $!");
while (<URL>) {
(/^$id$delim(.+)/o) or next;
chomp ($goto = $1);
last;
}
close URL;
$goto or &error ("Can't find link id: $id");
And replaced it with
Code:
# Let's get the Contact Email Address. open (URL, "<$db_email_name") or &error ("unable to open url database: $db_email_name. Reason: $!");
while (<URL>) {
(/^$id$delim(.+)/o) or next;
chomp ($goto = $1);
last;
}
close URL;
$goto or &error ("Can't find link id: $id");
figuring the jump needs to look up the Contact Email.
My logic comes from my links.cfg file which includes
Code:
$db_email_name = "$db_script_path/data/email.db"; # PATH to email database.The result I get is that it can't find link id.
One problem I see is that email.db has no data. That is probably why I get the can't find link id error.
Mu url.db has contains
1|mailto: omitted
2|mailto: omitted
3|mailto: omitted
4|mailto: omitted
up until I made some fields not required. Data is not being added as resources are being added.
...steven
MINI Links
BMW 318ti Registry