I'm trying to fix some PHP code so that refers the user to the same page he/she is on if he is already logged in. Here's the code:
<?php
global $user;
// Are they logged in?
if ( $user->uid ) {
// Yes, take them to the new page
drupal_goto ("same page user is on or do nothing";
}
else {
// No, take them to the login page
drupal_goto("user");
}
?>Can anybody tell me what to put into line 6 so that it either does nothing or, in effect, causes the goto fucntion to go to the current page (i.e. refresh)
Dan





Joined: 01/22/2008