I have a couple of code snippets given to me awhile back that worked beautifully until recently. I am not a programmer and can only assume that when I redesigned my site recently I must have inadvertenly damaged this code.
It is supposed to grab a previously set cookie and put it in a custom hidden field in a paypal payment form.
Note: globals are On and the use of <? as an option to <?php is on as well.
Here is what is in place right now:
<body>
<?
$pid = $HTTP_COOKIE_VARS['Ref_ID'];
?>
blah blah blah html....then, within the PayPal form this:
<input type="hidden" name="custom" value="<? echo "$pid"; ?>">
Any suggestions to fix this or a completely different approach would be appreciated. Mike