Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: HTML/PHP help

  1. #1
    New to the CF scene
    Join Date
    Jul 2014
    Thanked 0 Times in 0 Posts

    Lightbulb HTML/PHP help

    So I was wondering how I would go about creating a system where when a user first signs up a user page would be created for them when they clicked on the submit button. The user page would need to have an empty field which would be filled in using the username they supplied in the sign up form.

    Any ideas?

  2. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Thanked 1,007 Times in 1,004 Posts
    Not only do you go to the 'users page' after registering, which involves writing to a database, you go there after log-in, which involves reading from a database. Both use the username at sometime. Both should make a sessions variable of the username and both should go to the 'user page' which is a PHP file, in the header of this file the sessions' variable is retrieved and echoed to the page in the correct place.

    You do know PHP?
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.


Posting Permissions

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