[solved] $_COOKIE['variable'] Problem
Posted: Thu Dec 16, 2004 8:55 am
Below is my code which works great when I call the file it is in directly but I want to use it as an include. Does php not allow this?
Chris Siefken
Code: Select all
<?php
if (isset($_COOKIE['power_campus_num'])){
$id = $_COOKIE['power_campus_num'];
$fname = $_COOKIE['first_name'];
$lname = $_COOKIE['last_name'];
$page = $PHP_SELF;
$date = time();
$dbdate = date("m/d/y G.i:s", $date);
include '/var/www/html/phplib/mysql_connect.php';
mysql_query ("INSERT INTO admissions_stats (people_code_id , first_name , last_name , file , date)
VALUES ('$id' , '$fname' , '$lname' , '$page' , '$dbdate')");
include '/var/www/html/phplib/close.php';
print "<!--Hit Logged-->";
}
?>