Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    1
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Auto page generate

    Hi there,

    Basically I need PHP to automatically generate a page so that each user can have there own profile. E.g. www.test.com/users/template.php?id=XX

    How would I integrate this into a PHP signup page?

    Thanks,

    Ben

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,081
    Thanks
    23
    Thanked 592 Times in 591 Posts
    A user will sign up with an html form giving you his user name and password.
    He submits the form info to php script that will clean the input and make a new entree for him in your database (containing his name and password and a automatically generated number labeled user_id to id him to you.)

    You will get this number as a variable and generate the profile html. Place the id number in a hidden field!
    When the profile is submitted you can add the info to the database table where the user_id equals the hidden field number received.

    You now have his profile.

  • Users who have thanked sunfighter for this post:

    BenRobertson (02-26-2013)

  • #3
    Regular Coder
    Join Date
    Jul 2012
    Location
    London
    Posts
    473
    Thanks
    4
    Thanked 86 Times in 86 Posts

  • Users who have thanked tempz for this post:

    BenRobertson (02-26-2013)


  •  

    Posting Permissions

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