Ive tried multiple solutions but when i actually tried it, they dont work. Im looking for a way to save the referer URL so when the user keeps browsing the site until it lands on a contact page and submits ill get the referer.
There i would like to post the url referer in a hidden text form field as part of the contact form.
This needs to be done using just jquery becuase i want to be able to use it in non-php pages. Ive tried a jquery cookie plugin, but it didnt work for me.
Anyways, if somebody knows a working code to get this done and then post it in a text field i would really appreciate it.
In short: i need to store the http referer url in a session or cookie, then post it inside a form field that resides in a particular contact page and i need to do it using jquery.
Can somebody take a look at this possible solution and maybe post the exact code you are using to make it work?
possible solution: Using Referrer URLs to Better Understand Your Visitors
DISCLAIMER: ive tried that solution and i couldnt make it work.
Please help
There i would like to post the url referer in a hidden text form field as part of the contact form.
This needs to be done using just jquery becuase i want to be able to use it in non-php pages. Ive tried a jquery cookie plugin, but it didnt work for me.
Anyways, if somebody knows a working code to get this done and then post it in a text field i would really appreciate it.
In short: i need to store the http referer url in a session or cookie, then post it inside a form field that resides in a particular contact page and i need to do it using jquery.
Can somebody take a look at this possible solution and maybe post the exact code you are using to make it work?
possible solution: Using Referrer URLs to Better Understand Your Visitors
DISCLAIMER: ive tried that solution and i couldnt make it work.
Please help