php - Same form, different pages
I have a simple form, and when i submit the information, i insert it on my DB. Until here everything is ok. But i need to have the same form on 20 pages. I know i could replicate the code, or even use different buttons to get the result i want. But i want to know if there is a better way to use the same form, and identify the page where i submit the information. So that the information on my DB could be:
ID Page Name Email Text and so on...
Thank you in advance. Best Regards.
"Maybe i didn't explain myself well, and i'm not asking for "free coding service" as someone said. I know i can , in the different pages. That is what i'm doing. Also the information is being inserted on my BD when i submit. No problem until here! What i want to know, is how can i have my form being include on the different pages, using the same "submit" button with the same name, but when the information is inserted on my BD, i can know that my column "page" gets the right information from the different pages."