Why don't work $post empty?
if (isset($_GET['profil_refresh'])){
if( $_SERVER['REQUEST_METHOD'] == 'POST') {
if (!empty($_POST["fullname"]))
{echo "fullname is required";}
// ------------------------
if (!empty($_POST["email"]))
{echo "Email is required";}
// ------------------------
if (!empty($_POST["fb"]))
{echo "varos is required";}
// ------------------------
if (!empty($_POST["age"]))
{echo "kor is required";}
// ------------------------
if (!empty($_POST["aboutme"]))
{echo "rolad is required";}
}
$loginid = $_SESSION['loginid'];
$hash = $_SESSION['hash'];
$id = $_SESSION['id'];
$user = $_POST['user'];
$email = $_POST['email'];
$fullname = $_POST['fullname'];
$fb = $_POST['fb'];
$age = $_POST['age'];
$aboutme = $_POST['aboutme'];
mysql_query("UPDATE zl SET email='" .$email. "', fullname='" .$fullname. "',
fb='" .$fb. "', age='" .$age. "', aboutme='" .$aboutme. "', adatok='OK' WHERE loginid='" .$loginid. "'")
or die(mysql_error());
header("Location: accindex.php");
}
I don't know what is the problem. first the user type his details, and this code will be check and update in mysql. but not function.