studgate Posted March 20, 2008 Share Posted March 20, 2008 Hi Guys, I need some help resolving a simple problem. I have two tables one is user and the other is activity. The user can't filled the activity form without logging in, when they registered, all the information was asked. What I want to do is when the user is filling out the activity form, the user's information (first name, last name, address, city, etc) can be inserted into the form, the user can leave it or change it if they want. Thanks in advance guys! Quote Link to comment Share on other sites More sharing options...
RottNKorpse Posted March 20, 2008 Share Posted March 20, 2008 well this is very dependent on the membership system you are using because most (if not all) are going to work differently...some use sessions to fetch data from DBs and some use cookies. Quote Link to comment Share on other sites More sharing options...
studgate Posted March 20, 2008 Author Share Posted March 20, 2008 I want to save the current user id in a session and when the userid equals to the user id of the session gets the full name and other information. The only thing is I don't know how to get this. Quote Link to comment Share on other sites More sharing options...
RottNKorpse Posted March 20, 2008 Share Posted March 20, 2008 do you know how to build sessions? because this is not a simple thing to learn and I would just suggest finding an open source php membership system to start out with such as any open source CMS. You could also find barebones membership systems that are designed for only that but still if you want one built from scratch you will need to hire and pay someone to do that or spend quite a bit of time learning how to do it yourself. Quote Link to comment Share on other sites More sharing options...
pauleth Posted March 20, 2008 Share Posted March 20, 2008 Hi Guys, I need some help resolving a simple problem. I have two tables one is user and the other is activity. The user can't filled the activity form without logging in, when they registered, all the information was asked. What I want to do is when the user is filling out the activity form, the user's information (first name, last name, address, city, etc) can be inserted into the form, the user can leave it or change it if they want. Thanks in advance guys! I don't think what you are trying to accomplish is that difficult, but your post sounds like you're pretty much asking the folks here to write the script for you. I agree that you should either find an open source package, or spend some time learning a little more about PHP and figure it out on your own... The actual database side isn't that hard, and if you did go with a sessions approach, you could set up something pretty straightforward to authenticate users and store particular session variables depending on who is logging in... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.