PHP 1
PHP 1
```php
<!DOCTYPE html>
<html>
<body>
<form method="post">
</form>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$number = $_POST['number'];
if ($number > 0) {
} else {
?>
</body>
</html>
```
2. To display your name and department in a separate line with different color:
```php
<!DOCTYPE html>
<html>
<body>
</body>
</html>
```
```php
<!DOCTYPE html>
<html>
<body>
<?php
if ($i % 2 != 0) {
} else {
}
}
?>
</body>
</html>
```
```php
<?php
$sum = array_sum($numbers);
?>
```
These PHP code snippets should help you achieve the desired functionalities.