📜  php 如果有帖子 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:12.691000             🧑  作者: Mango

代码示例2
if( isset($_POST['fromPerson']) )
{
     $fromPerson = '+from%3A'.$_POST['fromPerson'];
     echo $fromPerson;
}

//Note: This resolves as true even if all $_POST values are empty strings
if (!empty($_POST))
{
    // handle post data
    $fromPerson = '+from%3A'.$_POST['fromPerson'];
    echo $fromPerson;
}