0

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");
2
Contributors
1
Reply
21
Views
1 Year
Discussion Span
Last Post by diafol
3

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.