I have various links in my website that point to a specific form.
Whenever someone fills out the form, I want to be able to know what link led them to the form.
I want to do this without having to create an individual line of PHP code for every link I create in the. Instead, I want to have some PHP code that picks up something from that link, and maybe inserts it into a hidden text box that gets its value or text from something that I tag in the link.
For example:
- User clicks a link.
- That link directs them to a form.
- The link carries an identification that activates PHP code
- When I recieve the form, I know what link was clicked to get to that form.
I want it to work with links in emails I send out as well.