Sounds like you are wanting to use Query Strings. There are plenty of resources online to help you out. Here are some examples:
https://lightignite.com/help-your-customers-fill-out-web-forms-with-url-query-strings/
http://richard.jp.leguen.ca/tutoring/soen287/tutorials/query-strings-and-forms/
0
solved My login php script that redirects to each user page [closed]