I am looking to create a directory when a user logs
in, and have that user redirected to their page logon.
 I have this script, which I haven;t implemented, but
I would like your opinion.

<script>
// Define the URL for when the user is logged in
$url = 'http://' . $_SERVER['HTTP_HOST'] .
dirname($_SERVER['PHP_SELF']);

// Make sure there is no trailing slash
if ((substr($url, -1) == '/') OR (substr($url, -1) ==
'\\') ) {
  $url = substr ($url, 0, -1); // Chop off the slash.
}

// Redirect to the page at logon
$url .= '/' . $_POST['username'] . '.php';
                        
</script>

Thanks,
nick                    


Check me out!

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to