SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2001
    Location
    uk
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've installed a script from the following:
    http://www.phpbuilder.com/columns/ti...05.php3?page=1

    After a user registers it stores a cookie on the users system with username and password. If, within 30 days a user returns it logs them in automatically.

    I want to use the username variable in a form...

    How do I get this information and add it to my form?
    I've tried <INPUT TYPE=hidden NAME="user" value="<?php ($user_name); ?>"<p> but this returns a blank field. I don't want them to add the username manually or they may alter it and I need to know who is posting comments. User details are kept in a seperate database to user comments.

    I think I may need to rip the info from the cookie but am not sure...The system must recognise they are a user to grant them access to post...

    The test page I am using is http://www.holidaytruths.co.uk/alcbeach.php You may register and test the page if you wish if it will help you help me.

    Caunton

  2. #2
    SitePoint Enthusiast
    Join Date
    Apr 2001
    Location
    uk
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sorted...Thanks anyway

    Missed the echo out of the form...

    Thanks anyway

    Caunton


Bookmarks

Posting Permissions

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