I need to pass a variable which will be the current logged in members id to another website. I dont care if it is not secure or not. This is how it MUST be done. So the user will click on a link then the link will pass the password and user id to the new website. Here is what I have so far, but doesnt seem to work. Any ideas would be great! Thanks.
<?php global $current_user; get_currentuserinfo(); echo '' . $current_user->user_login . "\n"; ?>
<?php echo $current_user->user_login;
echo '<a href="http://sport.net/clubpro/clubs/cs-squash/index.php?username<?php echo '$current_user';?>;password=bff23476a33b6bfe
" target="_blank">Squash Login</a>';
I cant figure out how to put the current user id into the username part of the URL.