i'm using the external text file mod. is it possible to include html code such as a href in the external text file to create a link to another page, such as a mapquest link). if possible i want links in the external file instead of having separate fields in the database for them.
Jun 28, 2004, 8:24 AM
Veteran / Moderator (3034 posts)
Jun 28, 2004, 8:24 AM
Post #2 of 2
Views: 2206
I'm not sure it would work with using the external text file as you would have to add the conditions to get the link to work properly. And I don't think you could have this work within the text file.
For instance for Yahoo maps I use:
if (($rec{'Country'} eq 'United States') && ( $rec{'Address'} && $rec{'City'} && $rec{'State'} ) ) {
$addr = &urlencode($rec{'Address'});
$city = &urlencode("$rec{'City'}, $rec{'State'}");
print qq|<BR><a href="http://maps.yahoo.com/py/maps.py?addr=$addr&csz=$city">Map</a> |;
}
Search for forums for Mapquest and locate any related threads.
Unoffical DBMan FAQ
http://creativecomputingweb.com/dbman/index.shtml/
For instance for Yahoo maps I use:
if (($rec{'Country'} eq 'United States') && ( $rec{'Address'} && $rec{'City'} && $rec{'State'} ) ) {
$addr = &urlencode($rec{'Address'});
$city = &urlencode("$rec{'City'}, $rec{'State'}");
print qq|<BR><a href="http://maps.yahoo.com/py/maps.py?addr=$addr&csz=$city">Map</a> |;
}
Search for forums for Mapquest and locate any related threads.
Unoffical DBMan FAQ
http://creativecomputingweb.com/dbman/index.shtml/