i am trying to set up a email verification form when someone registers on the form a link is emailed to their email address that the user clicks on and it actives their account.
I have the email verification working but for some reason its not showing the echo $realname;
<?php error_reporting(E_ALL); ini_set('display_errors', 1);?>
<?php include("includes/header.php"); ?>
<?php include("includes/menu.php"); ?>
<?php include("includes/connect.php"); ?>
<?php
$email = $_GET['email'];
//check if email is empty
if (isset($email)){
//check if email has account
$sql="SELECT * FROM `apply` WHERE email = '$email'";
$result=mysqli_query($sql);
$row=mysqli_fetch_array($result);
$realname =$row['real_name'];
$address =$row['address'];
$telephone =$row['telephone'];
$email =$row['email'];
echo $realname;
}else{
echo "email problem";
}
?>