Getting to Know the Raspberry Pi – Session 6 – July 22, 2020

Getting to Know the Raspberry Pi – Session 6 – July 22, 2020

Session 6 is the conclusion of our first Getting to Know the Raspberry Pi Mini-Course. We hope you enjoyed the course. The main purpose was to spark an interesting in computing utilizing the power of this small computer.

Here is the code we used for the helloyou.php file:

<html>
	<head>
	</head>
	<body>
		<form action="demoyou.php" method="post">
		     <p>Enter Your name: <input type="text" name="Name" size="30"/>
			<br/>
			<input type="submit" value="Submit"/>
			
			</p>
		</form>
	
	</body>

</html>

Here is the code for the demoyou.php file:

<html>
	<head>
		
	</head>
	<body>

<?php
    $NamePosted=$_POST['Name'];
    echo '<h1>Hello, ' . $NamePosted . '</h1></br>';
?>

		<h1>Greeting!</h1>

<?php
    $MorningOrAfternoon=date('a');
    if($MorningOrAfternoon=='am'){
      echo '<p style="color:#ff6400;">Good Morning ' . $NamePosted . '</p>';
    }else{
      echo 'Good Afternoon ' . $NamePosted;
    }
?>
	
	</body>

</html>