i hate my life because I do not know what Im doing
im trying to leave a cookie on the users pc from the URL.
THIS IS THE URL (generated by infusionsoft)
http://www.get-financed.org/rtest/2/?Contact0Email=pleasegodwork@jjsjs.com&contactId=40939
The URL contains something called contactId and im using this code
// set the cookies
setcookie("cookie[three]", "<?=$_GET['contactId']?>");
setcookie("cookie[two]", "cookietwo");
setcookie("cookie[one]", "cookieone");
// after the page reloads, print them out
if (isset($_COOKIE['cookie'])) {
foreach ($_COOKIE['cookie'] as $name => $value) {
echo "$name : $value <br />\n";
}
}
print_r($_COOKIE);
The reason why i think this would work is because down in the page im using this... and its working
<td><input name="contactId" size="15" id="contactId" value='<?=$_GET['contactId']?>' type="text" class="default-input" /></td>
How can I get the contact id ( 40939 ) to print as a cookie so i can look for it when users hit other pages?
Even if you do not help, please laugh so that my 8 straight hours it took to get this far produces some value for someone.