hya all i am wanting to put a link to members profile where the link will appear on user account page when they register up like image included

for security reasons i have removed the username from image but itdid display a username at end of link

hugs jan x

profile_link.png

Member Avatar for diafol

You have a number of options, depending on your setup. You can store the user_id in a session variable and just use it to extract data from the user table and populate a profile form. The update form then is handled with the session user_id variable to make sure it goes to the correct record. Pretty basic. If you have a CRUD setup, you may be using RESTful urls so your url may look like this: /users/17/edit for user_id = 17. But I doubt this is the case from your example.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.