How To Save First REFERER Url With Jquery And Then Post It In A Hidden Form Text Field
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.
精彩评论