<?php
	if(empty($_POST['char']) || strlen($_POST['char']) != 1)
	{
        header('Location: http://'.$_SERVER["HTTP_HOST"].dirname($_SERVER["SCRIPT_NAME"]).'/design.html');
        exit;
	}
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
	<link href="style.css" rel="stylesheet" type="text/css"/>
	<title> CS-75 Section </title> 
  </head>
  
  <body>
	<?php
		$char = $_POST['char'];
		$CHAR = 'y';
		$lines = $_POST['lines'];
		for($i = 0; $i<$lines; $i++)
		{		
			echo "<center>";
			for($j = 0; $j<$i; $j++)
			{
				echo $char;
			}
			echo "</center>";
		}
	?>
  </body>
</html>