View Full Version : how to Create a cookie in drupal to store GET params from referer

02-19-2012, 01:33 PM
Hi all,
On drupal 7.8 I use webform module, which on every submission , I want to send as hidden value, a GET params (e.g. ?ref=[param]). This Get parameter is coming from referring sites, so I want to send this info on every form submission.

I have two questions:
1. How and where do I store this GET parameter in a cookie? (which file etc…)
2. How do I display this info in the webform (special tokens area)…
I just cant find where do I write this special cookie.