Hello and welcome to our community! Is this your first visit?
Register
Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Apr 2008
    Location
    {postrow.POSTER_FROM}
    Posts
    424

    Re: 'Users' addition

    So what, like private messages? That's easy...just create variables in php for things like subject, message, and name. Then echo them on the new page.

    Not much too it, but it is incredibly unsecure.
    [center:5vxp2rwi][/center:5vxp2rwi]

    See, the problem is that God gives men a brain and a penis, and only enough blood to run one at a time.
    -Robin Williams
    The VIP Store | Net-Cake (Coming Soon)

  2. #2
    Fanatic Enthusiast The Inzuki's Avatar

    Join Date
    Oct 2006
    Location
    ???
    Posts
    4,690

    Re: 'Users' addition

    Quote Originally Posted by ViciousDuck
    So what, like private messages? That's easy...just create variables in php for things like subject, message, and name. Then echo them on the new page.

    Not much too it, but it is incredibly unsecure.
    All you have to do is get the username on the message and match it with the user's session. At least now it's a little bit more secure.
    hi.

  3. #3
    Fanatic Enthusiast The Inzuki's Avatar

    Join Date
    Oct 2006
    Location
    ???
    Posts
    4,690

    Re: 'Users' addition

    Quote Originally Posted by !Code
    Okay, sounds simple enough. But I want it automatic. Also, is this how you echo, just to get things clear?



    <? echo "$name"; ?></p>



    Topics:

    <? echo "$subject"; ?>
    <? echo "$subject"; ?>
    <? echo "$subject"; ?>
    <? echo "$subject"; ?>
    <? echo "$subject"; ?>

    e- I don't know if this is logical or not, but it just came into my head. How would it know what subject variable is which if all the variables are called 'subject'?
    When you echo a variable you don't use quotes, only "<? echo $variable; ?>"

    Another way is "<? echo "".$variable.""; ?>"

    I mean, that's how I do it. Not sure about anyone else :K
    hi.

  4. #4
    Senior Member
    Join Date
    Apr 2008
    Location
    {postrow.POSTER_FROM}
    Posts
    424

    Re: 'Users' addition

    Then you obviously didn't try googling it.
    [center:5vxp2rwi][/center:5vxp2rwi]

    See, the problem is that God gives men a brain and a penis, and only enough blood to run one at a time.
    -Robin Williams
    The VIP Store | Net-Cake (Coming Soon)


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •