I am new to PHP. My isset function is not working .It does not not show error .It always insert the table. I have given my code. Kindly advice what i done wrong on this
<?php
if(isset($_POST['submit'])) {
$a= $_POST['companyname'];
$b= $_POST['ballpark_url'];
$c= $_POST['username'];
$d= $_POST['email'];
$e= $_POST['login1'];
$f= $_POST['pass'];
$error = false;
if(validname($a) ==false) {
echo $nameerror = "enter the valid name";
}
if(validemail($d) ==false) {
echo $nameerror = "enter the valid email";
}
if(isset($_POST['companyname'])) {
if($error==false) {
$query= "INSERT INTO user VALUES ('$a','$b','$c','$d','$e','$f','');";
if(!mysql_query($query)) {
die ('error:'.mysql_error());
}
mysql_close($conn);
}
include("templats/header_1.html");
include("templats/content.html");
include("templats/footer.html");
}
?>
kindly rectify the issue in my code and send back to me...
isset()is not a function. 2. Why would you expect any kind of error here? Please show us your form.