I need to redirect the user in this code example, so I don't have a option. But I want to make a Box visible, when the result is success, but I can't echo the visibility by the ID, and I can't find a second option for that.
if ($result == "success") {
header('Location: https://www.example.com/lorem');
echo '<style>#successbox { visibility: visible !important;}</style>';
} else {
header('Location: https://www.example.com/lorem');
echo '<style>#errorbox { visibility: visible !important;}</style>';
};