开发者

How To Save First REFERER Url With Jquery And Then Post It In A Hidden Form Text Field

开发者 https://www.devze.com 2023-03-01 15:42 出处:网络
Ive tried multiple solutions but when i actually tried it, they dont work. Im looking for a way to save the referer URL, then the user keeps browsing the site until it lands on a contact page and subm

Ive tried multiple solutions but when i actually tried it, they dont work. Im looking for a way to save the referer URL, then the user keeps browsing the site until it lands on a contact page and submits. There i would like to post the url referer in a hidden text form field.

This needs to be done using just jquery. Ive tried a jquery cookie plugin, but it didnt work for me.

Anyways, if some开发者_JS百科body knows a working code to get this done and then post it in a text field it 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.

Can somebody suggest a solution?


Sebastian ,

Store the referer value in the cookie and use it later.

Jquery cookie plugin should work for sure.

0

精彩评论

暂无评论...
验证码 换一张
取 消