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

[ad_1]

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

[ad_2]

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