Contact Us form sending id of the button clicked to go to this page

Permalink
Hi all

It's prob an easy fix, but my knowledge in coding is not good enough for that...

I have different "request more info" links on the website that all go to the contact us page. But i'd like to be able to know on which button they clicked.
so what have done is adding a parameter in the link:
<a href="/contact-us/?from=button2">LINK</a>
and now i need to pass this parameter when submitting the form...

any idea?

thanks

 
pvs replied on at Permalink Reply
pvs
you will need to do some php coding.. and a lot of changing those links of yours..
but.. there is another way, you can track your movement of your visitors from google analytics so it will probably save you some trouble doing it.
epurple replied on at Permalink Best Answer Reply
i managed to do what i wanted: add a ?fromButton=NameOfTheButton at the end of the link and changing the form to send this parameter as well to the send email script.
finally updating the send email to print this parameter in the email sent.
Thanks