Profile form - Post ID 255213

User 2809165 Photo


Registered User
8 posts

Hi Guys looking to start a website that ties up employers and employees for the company I work for.

My question is :

I want the user to login in then update profile with their details - address etc (the reason I want to use the form builder) so how do I get the form to update that users profile(hidden elements?)

Thanks for any help.
Barrie
User 187934 Photo


Senior Advisor
20,271 posts

You'll need to redirect the form to a custom page where you can grab the session variables to update the database.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2809165 Photo


Registered User
8 posts

So redirect pick up the session variables and process to table using php? How do I submit to the same row?

Probably too complicated for me, thanks anyway!

User 187934 Photo


Senior Advisor
20,271 posts

Submitting to the same row is called an update. It's pretty simple.
http://wiki.hashphp.org/PDO_Tutorial_fo … Developers
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2809165 Photo


Registered User
8 posts

Of course it is, thanks!

Sorry for the hassle but would I just run a script to update the last updated row?

Thanks
User 187934 Photo


Senior Advisor
20,271 posts

You can set the update to select what ever row you want. You use conditional login to look for what you need whether is a date, text , or number.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2809165 Photo


Registered User
8 posts

Yes I know but how would I update the right row ie add the unique user id(from user table) to the profile table.

Ok if you don't answer as I realise I am going off topic.

Many thanks

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.