hi i have the following error
[09-Nov-2016 16:22:28 America/Chicago] PHP Notice: Undefined index: HTTP_REFERER in /home/matureco/public_html/index.php on line 224
[09-Nov-2016 16:22:28 America/Chicago] PHP Notice: Undefined index: email in /home/matureco/public_html/index.php on line 225

ive checked and they are in the php block see code below can anyone tell me why this is happening regards jan x

<td><input type="hidden" name="go" id="go" value="<?php echo $_SERVER['HTTP_REFERER'];?>" />              
              <input type="text" name="email" id="email" size="30" value="<?php if(!empty($email)) {?><?php echo $_POST['email']?><?php }?>" maxlength="20"></td>

$email      = $_POST['email'];
    $password   = md5($_POST['pass']);
    $go         = $_POST['go'];

$_SESSION['SESS_email'] = $logmysqli_data['user_email'];
        $lastlog    = mysqli_query( $conn,"update user_lastlogin set lastlogin = '$sdate' , ipaddress = '".$_SERVER['REMOTE_ADDR']."' , online_status = '1' where user_id = '".$_SESSION['userid']."' ");
        header("location: $go");
Member Avatar for diafol

Not all user agents send a HTTP_REFERER. You shouldn't depend on it and you certainly can't trust it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.