Code: Select all
function renderSilverLightControl2($source)
{
echo "<div id='silverlightControlHost'>";
echo "<object width='100%' height='100%' type='application/x-silverlight-2' data='data:application/x-silverlight-2,' >";
// echo "<param name='initParams' value='originatorfname=John,originatorsname=Murray' />";
echo "<param name='initParams' value='originatorfname=${firstName},originatorsname=${lastName}' />"; This works fine isf the commented out line is used
Code: Select all
echo "<param name='initParams' value='originatorfname=John,originatorsname=Murray' />";
I have looked everywhere and I can't really see what's wrong with my variable substitution
Yes I've checked variables are there as expected with no odd text or chars
oddly enough when tring to debug I've used 'print' but if the string contains "<" or "/>" one cannot see the string
so I cant get a handle on what's going on
help please -
J M