Greetings gang,
Well here I go again looking for help...Since I finished beating the last problem into submission with the help of rdivilbiss, VGR...(Thanks Guys!) I've been trying to set a cookie named 'MDIA' from a file with the function of having it live for two weeks using this code...
<?php
session_start();
$cookies = False;
setcookie('MDIA', $_POST['MDIA'], time()+60*60*24*14);
?>
<?php
ini_set ('display_errors', 1);
error_reporting (E_ALL & ~E_NOTICE);
if (isset($_SESSION["Validated"]) && ($_SESSION["Validated"] == 1))
{
?>
<?PHP
require ('includes/header.html');
?>
html page info...yada yada yada...
and this is the retrieval code from the other page where I wanted to pick up the code from
<?php
error_reporting (E_ALL & ~E_NOTICE);
ini_set ('display_errors', 1);
if (isset ($_COOKIE['MDIA']))
{
print "Welcome back, thank you for shopping at ACME Widgets";
}
if (isset($_POST['Submit'])) //Post handling method
{
$error = 0; $errorlist = '';
At this point I'm not seeing the script I want printed
print "Welcome back, thank you for shopping at ACME Widgets"
on the page...can anyone point out what I've done wrong here.
Thanks in advance guys...
DougB
learning more daily....