简体   繁体   中英

Required text, isn't showing up, no clues why?

So I got this small script -

if (isset($_POST['submit']) && $_POST['description'] == '')
{
    echo '<strong><font color="Red" size="2">REQ!</font></strong>';
} 
else
{
    echo '';
}

But it is not showing up after submit button has been pressed and if description is empty. All of the input names are correct, any help would pe appreciated, cause I just somehow can't find answer to this easy question. Best regards, Valters

Your code works for me...

Please verify that $placeadd->translate('required') actually returns a string value. If it doesn't, or returns an empty string, you won't see any result unless you view the source of the code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM