<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 3/25/2011 2:13 AM, Hans wrote:
<blockquote cite="mid:1037079249.20110325091321@softflow.co.uk"
type="cite">
<pre wrap="">Friday, March 25, 2011, 9:05:00 AM, Steven wrote:
</pre>
<blockquote type="cite">
<pre wrap="">So, if I were to type:*(:setpv price="$39.99":)* on a page, I should be
able to referencing {$price} when I need to.
</pre>
</blockquote>
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">For example: *The price you entered was {$price}.*
</pre>
</blockquote>
<pre wrap="">
I am curious as why you don't use page text variables instead?
(:price: $39.99:)
The price you entered was {$:price}
Hans
</pre>
</blockquote>
<br>
Thanks for your reply Hans. I tried using page text variables also:<br>
<br>
<b><font color="#009900"><tt>my_function($args) <br>
{<br>
<br>
$html = '';<br>
<br>
$my_vars = ParseArgs($args);<br>
<br>
if (isset($my_vars['price'])) <br>
</tt></font></b>
<blockquote><b><font color="#009900"><tt>{</tt><br>
<tt> // set page variable for 'price'</tt><br>
<tt> $price = $my_vars['price'];</tt><br>
<tt> $html .= "(:price: $price:)";<br>
</tt><tt>}</tt><br>
</font></b></blockquote>
<b><font color="#009900"><tt>return $html;<br>
}</tt></font></b><br>
<br>
This also did not work for me. I double checked my syntax.
{$:price} just to make sure I'm not making a typo somewhere.
Nothing works. <br>
<br>
<br>
<br>
</body>
</html>