Iframe SSO print echo


I'm currently trying to create SSO with a come2play channel, but I'm having problems with using print/echo to enter the uid etc into the corrent places; so far my file looks like:



$user = elgg_get_logged_in_user_entity();

$name = "$user->name";

print('<div align="center"><iframe src="http://www.siteurl.com/channel_auth.asp?v=2&channel_id=12345&uid=6&nick_n

ame=<?php echo($name) ?>&auth_sig=md5(uid+65432)"width="762" height="1230" frameborder="0" scrolling="no" allowtransparency="true" ></iframe></div>');





How would I go about placing $name after nick_name=?  I've tried a few different variations of echo and print but with no joy.

anypointers would be awsome!

thanks in advance



Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking