This is a discussion on "How can people Register on a site, and have it go to their profile? I need help..." within the PHP Forum section. This forum, and the thread "How can people Register on a site, and have it go to their profile? I need help... are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
How can people Register on a site, and have it go to their profile? I need help...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
How would I do that?
|
|
|
|
#2
|
||||
|
||||
|
Re: How can people Register on a site, and have it go to their profile? I need help..
Sorry imagehorizons, could you elaborate a bit more please?
Sounds like you're going to need a database and some server-side knowledge - for now I'll move this to the PHP Forum
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
#3
|
||||
|
||||
|
Re: How can people Register on a site, and have it go to their profile? I need help..
First off, please repeat the question thats stated in the title, don't just say "how do you do that?"
And to do that you'll have to learn PHP (or ASP or something) Here's a very nice list of resources to learn PHP.
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
#4
|
|||
|
|||
|
Re: How can people Register on a site, and have it go to their profile? I need help..
I m working on a similar problem I have created a userform using PHP and Javascript for validation which writes to a MySQL database. Im going to use sessions to create a login area
|
|
#5
|
|||
|
|||
|
Re: How can people Register on a site, and have it go to their profile? I need help..
To perform a user accounts page you need to create a login form that loads creates a session['ID'] variable once login validate is successfull!
Let me try to explain over a few steps: First off login form: i cannot be bothered typing the whole bunch of login code so u will have to set the connection variables & protect against mysql inject yourself: The code below validates the user by this code:
Then from succesfull login you are directed to the accounts page & you will have to recall the session['ID'] like so: make sure you use mysql_fetch_array to grab the data from rows after query, the all you have to do is echo the data from the datanase like this: <?php echo['Example coloumn']; ?>
Step 2: start session\connect to server & select database! Step 3: run query & fetch array from the result resource! Step 4: echo colomns to display logged in users data! Hope this helps |
|
#6
|
|||
|
|||
|
Re: How can people Register on a site, and have it go to their profile? I need help..
Thats a great help thanks
|
|
#7
|
|||
|
|||
|
Re: How can people Register on a site, and have it go to their profile? I need help..
No problem!! if you have any probelms creating the rest of the login form just egt in touch... Am a bit tipsy at the mo so excuse the poor spelling!!! Sessions are easy only when you have seen a example working infront of you!
Always start a session at the top of the page to be output first then simple run a query by the id, fetch array the result & echo out the data from the relevant rows 7 the session will do the rest even if it is a shopping cart or search engine.... easy peazy dude |
|
#8
|
|||
|
|||
|
Re: How can people Register on a site, and have it go to their profile? I need help..
thanks im gonna give that a go
|
|
#9
|
|||
|
|||
|
Re: How can people Register on a site, and have it go to their profile? I need help..
I had a similar requirement for a client, and I used this subscription service instead of PHP/MySQL:
www.HostedDatabase.com Check out this page on their site which explains how to set it up without any server code: http://www.hosteddatabase.com/how_to_security.asp You set up a custom database with all the field you want in the profile, then you create (or the users create) Users that can login and access/edit the profile info. You can also protect portions of your site so that only authorized users can gain access. They offer a free 30-day trial so you can set it all up and give it a spin. Good luck. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| have a site- now people want to advertise - PANIC! | sambkk | Search Engine Optimization (SEO) | 4 | May 30th, 2008 15:51 |
| Why can't some people see my current site? | foldingvan | Web Page Design | 2 | May 17th, 2007 12:39 |
| out of site ideas help me out people ... | bruno89 | Webforumz Cafe | 0 | Nov 28th, 2006 07:06 |
| how many people are on my site | bruno89 | Web Page Design | 5 | Oct 14th, 2006 23:29 |