Search found 6 matches
- Sun Jul 03, 2011 5:03 pm
- Forum: PHP - Code
- Topic: passing paramters using variables newbie confusion
- Replies: 12
- Views: 806
Re: passing paramters using variables newbie confusion
whooaa yeah - thanks Guys yes it is the scope of the variables I've now passed them as function parameters and I have got it to work So (excuse a cheeky follow on question after all your help :-) ) how does one declare supervariables - are they similar to 'globals' in vb or static in c# tx enormousl...
- Sun Jul 03, 2011 2:05 pm
- Forum: PHP - Code
- Topic: passing paramters using variables newbie confusion
- Replies: 12
- Views: 806
Re: passing paramters using variables newbie confusion
Yes - I used print('$firstName') before function is called and it demonstrates that the variables contain the correct content
Ah just had a thought - should the variables be passed to the function as function parameters ?
Ah just had a thought - should the variables be passed to the function as function parameters ?
- Sun Jul 03, 2011 1:03 pm
- Forum: PHP - Code
- Topic: passing paramters using variables newbie confusion
- Replies: 12
- Views: 806
Re: passing paramters using variables newbie confusion
quick follow on I tried swapping the types of quote thus echo '<param name="initParams" value="originatorfname=$firstName,originatorsname=$lastName"/>'; this pass the parameters but of course instead of variable substitution I got the parameters as literal $firstName and $lastNam...
- Sun Jul 03, 2011 12:52 pm
- Forum: PHP - Code
- Topic: passing paramters using variables newbie confusion
- Replies: 12
- Views: 806
Re: passing paramters using variables newbie confusion
tx Califdon (btw love your byline :-) so if I use single quotes as per literal string this should work? echo "<param name='initParams' value='originatorfname=$firstName,originatorsname=$lastName' />"; Unfortunately it doesn't and that' s where I started - readin gup I found that complex ex...
- Sun Jul 03, 2011 12:20 pm
- Forum: PHP - Code
- Topic: passing paramters using variables newbie confusion
- Replies: 12
- Views: 806
Re: passing paramters using variables newbie confusion
sorry corrected the previous post my code which uses teh variable substituion is this echo "<param name='initParams' value='originatorfname=${firstName},originatorsname=${lastName}' />"; I have tried with out curly braces and also this echo "<param name='initParams' value='originatorf...
- Sun Jul 03, 2011 9:43 am
- Forum: PHP - Code
- Topic: passing paramters using variables newbie confusion
- Replies: 12
- Views: 806
passing paramters using variables newbie confusion
have a PHP script which is calling a Silverlight object 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 "<...