“Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP

后端 未结 28 1208
盖世英雄少女心
盖世英雄少女心 2021-01-24 14:18

I\'m running a PHP script and continue to receive errors like:

Notice: Undefined variable: my_variable_name in C:\\wamp\\www\\mypath\\index.php on line 10

28条回答
  •  难免孤独
    2021-01-24 14:40

    One common cause of a variable not existing after an HTML form has been submitted is the form element is not contained within a

    tag:

    Example: Element not contained within the

    
        

    Example: Element now contained within the

    
        
        

提交回复
热议问题