+ Reply to Thread
Results 1 to 3 of 3

Thread: php help

  1. #1
    elliott1 is offline x10Hosting Member elliott1 is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    31

    php help

    i have got this script :
    <?php
    if (!isset($_COOKIE['loggedin'])) die("You are not logged in!<br><a href=login.html>log in</a>");
    $mysite_username = $HTTP_COOKIE_VARS["mysite_username"];
    echo "you are logged in as $mysite_username.<p>";
    but when the user is logged in it only says "you are logged in as." i dont no what to replace the $mysite_username with

    any help

    thanks !

  2. #2
    Fedlerner's Avatar
    Fedlerner is offline Retired Fedlerner is an unknown quantity at this point
    Join Date
    Aug 2006
    Location
    Buenos Aires, Argentina
    Posts
    12,923

    Re: php help

    *Moved to "Site Management"* as it isn't for support related to your hosting account.
    Federico Lerner
    Former x10Hosting Administrator - Staff Manager

  3. #3
    flinx is offline x10Hosting Member flinx is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    68

    Re: php help

    Does the cookie contain mysite_username? Do you set it in the login script?

+ Reply to Thread

Similar Threads

  1. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  2. tons of PHP Resources
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 01-16-2009, 10:07 AM
  3. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers