[Solved] what is the proplem with my code? [closed]


You are accessing a variable that isn’t defined unless $_POST['name'] has been defined.

Change the line

if ($name == ""){

to

if (empty($name)) {

PHP will check to see if the variable is set before trying to access it and see if it’s empty using this function. See this doc for more info

2

solved what is the proplem with my code? [closed]