發新話題

[問題] Why if(isset($_POST)) is true when its empty...

Why if(isset($_POST)) is true when its empty...

Folks,

At the begining of my html I have a PHP insert which should be called when
the user submits the form that the html contains... I found when the HTML is
called fresh (ie not processing a form) that

if(isset($_POST))
{
print("<br>true");
}
else
{
print("<br>false");
}

gets me true...

Why?

all help appreciated...

TOP

發新話題

本站所有圖文均屬網友發表,僅代表作者的觀點與本站無關,如有侵權請通知版主會盡快刪除。