i am getting this error
Notice: Undefined index: firstName in C:\xampp\htdocs\flasblog\test.php on line 3
Notice: Undefined index: lastName in C:\xampp\htdocs\flasblog\test.php on line 3
here is my php code
<?php include_once"scripts/connect.php"; ?>
<?php
$text=$_POST['firstName']." ".$_POST['lastName'];
$to="anubhavjhalani09@gmail.com";
$subject="Message from php";
//data insert into database
$sql="INSERT INTO entries (contents)
VALUES
('$text')";
echo $text;
?>
please somebody help me !!!!!!!!! i know how to hide this error but its not the solution of this problem.i am getting the variables from a flash file which is in the same folder.