here's the code i use..then the error appeared something like that..
Notice: Undefined index:address
and all other codes like this have the same error though it is not empty.
what's wrong?
thanks.
Notice: Undefined index:address
Code:
<?php
$a1 = $_POST['address'];
if($a1 = "")
{
echo "Empty Address Field.";
}
?>
and all other codes like this have the same error though it is not empty.
Code:
$surname = $_POST['surname']; $sex = $_POST['sex']; $firstname = $_POST['firstname']; $cstatus = $_POST['cstatus']; $middlename = $_POST['middlename']; $weight = $_POST['weight']; $age = $_POST['age']; $blood = $_POST['blood']; $pnumber = $_POST['pnumber']; $year = $_POST['year']; $month = $_POST['month']; $day = $_POST['day']; $email = $_POST['email']; $address = $_POST['address']; $category = $_POST['category']; $team = $_POST['team']; $browse = $_POST['Browse']; $password = $_POST['password']; $person = $_POST['person']; $contactadd = $_POST['contactadd']; $relationship = $_POST['relationship']; $ecnumber = $_POST['ecnumber'];
what's wrong?
thanks.
Comment