I new to xampp and also php ..... i facing this problems ...
I create a register member form with adobe flash, and wish to store the variable to the mysql via php .....
this is the coding for my php
// set your infomation.
// connect to the mysql database server.
mysql_connect ($dbhost, $dbusername, $dbuserpass);
if (!mysql_select_db($dbname)) die(mysql_error());
$lastname = $_POST['lastname'];
$icnumber = $_POST['icnumber'];
$phonenumber = $_POST['phonenumber'];
$street = $_POST['street'];
$city = $_POST['city'];
$postcode = $_POST['postcode'];
$email = $_POST['email'];
$query = "INSERT INTO member(firstname, lastname, icnumber, phonenumber, street, city, postcode, email) VALUES('$firstname','$lastname','$icnumber','$phonenumber', '$street', '$city', '$postcode', '$email')";
mysql_query($query) or die(mysql_error());
echo "$user succussfully registered!";
and then when I try to open my php file at local host with address http://localhost/regmem.php then it show me this error ...
Notice: Undefined index: firstname in C:\xampp\htdocs\FYP\regmem.php on line 11
Notice: Undefined index: lastname in C:\xampp\htdocs\FYP\regmem.php on line 12
Notice: Undefined index: icnumber in C:\xampp\htdocs\FYP\regmem.php on line 13
and order all variable error ......
after i check my mysql database with phpMyAdmin .... there is an empty data is saved to the table without any informations in it ...
HELP how to solve this?