Forum Moderators: coopster
Got a bit of a problem, I'm trying to get my user's ID into a url using php redirect. This is what I've got at the moment..
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
global $my;
if ( $my->id ) {
}
header("Location: http://www.example.com/".$_GET[$my->id]);
exit;
?>
I'm not a PHP expert, so I'm not sure what's going on, I'd really really appreciate a reply!
I also need to have it so that it only does the user id when there logged in!
Thanks in advance,
Steve