Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

z181r's avatar
Level 1

how to post data like user name from route to anothere

hello here is what i want to do and i need some help please i want to make 3 or 4 routes for register the 1st rout will be username and password i want send them to a session the 1st rout after you click submit will take you to another page to enter data like address and other stuff then after you click submit will send you to another page and collect all data into a session i think you get me now and after all of that the last page sent the data the collected to a mail can any one help me doing that ?

0 likes
4 replies
jlrdw's avatar

I suggest the username and bcrypted password in users table, other information in another related table.

In other words get them registered and logged in first, then let the user add more information as needed.

Just suggestions.

z181r's avatar
Level 1

@jlrdw i dont want to creat data base i want the routes collect all data in a session and after that send it to my mail did you get me ?

jlrdw's avatar

@z181r But why would you expect someone to give you their password, that does not sound correct.

z181r's avatar
Level 1

@jlrdw there will be no passwords i am just giving you a sample :D

Please or to participate in this conversation.