Hi, i have recently restarted a website that i let languish a few years ago again and got it back online (www.bathingwithtoasters.com), but as you can see at the top there are 2 warnings about the prehead script. I haven’t spoken to the guy who did my coding in a little while, and i know virtually nothing of PHP, so was basically wondering what to do.
I am pretty sure the code concerned codes for a cookie, to remember the images when you mouseover the menu buttons, as they had to reload a lot previously, and it took far too long, but am not certain. The complete code is as follows:
[php]<?php
if (isset($_COOKIE[‘amount’]))
$amount = $_COOKIE[‘amount’];
else $amount = 1;
$page = $_SERVER[‘PHP_SELF’];
if (isset($_COOKIE[‘page’]) && $_COOKIE[‘page’]==$_SERVER[‘PHP_SELF’]) $amount=$_COOKIE[‘amount’]+1;
else $strange=“yes”;
setcookie(‘page’, $page, time()+3600);
setcookie(‘amount’, $amount, time()+3600); ?>[/php]
If i need to post any other code or whatever, jsut say and i will add it. I did recently change hosting so this may also be relevant. I regretfully probably need layman’s terms for any help, as i’m pretty new to PHP, thanks for any help you can offer.
Nick
