[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] Re: variables


Webmaster Grandfather Clocks Plus writes:
Okay this should be easy, but I don't know enough about Interchange or Perl.
I'm just trying to make a basic variable that I can put into some html code,
this is what I'm trying to do:
[perl]
$site = "icdevgroup";
return $site;
[/perl]

[perl]
$Scratch->{site} = "icdevgroup";
[/perl]

<html>
<a href="www.$site.org">ICDEVGROUP.ORG</a>

<a href="www.[scratch site].org">ICDEVGROUP.ORG</a>
But using the perl block is probably a waste of resources etc ...
You can just set a (scratch) variable by:
[set site]icdevgroup[/set]
and call it with [scratch site]
</html>
I can't get this to work, anyone have any idea on how I should go about
this. Sorry for the basic question.
Thanks,
Brian
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.