<!--
    Brian Platz
    CS85 Section 1643
    Professor Geddes
    March 23, 2012
    Assignment: Test 1, problem 2    
            1    Assign the string "fred@carpets.com" to the variable $email .
            2    Assign the following string
                    This is a really long 'string' that covers several "lines"
                    and has an embedded variable $email 
                    and both single and double quotes.
                to the variable $text .
            3    Output the value of the variable $text .

--> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
   <head>
      <title>Test 1, Problem 2</title>
      <style type="text/css">
         body {background-color:#90EE90}
         h1 {color:black; font-family:Ariel; font-size:14pt; 
                 font-weight:bold; text-align: center}
         h2 {color:red; font-family:Ariel; font-size:14pt; font-weight:bold}
         h3 {color:black; font-family:Ariel; font-size:24pt; font-weight:normal}
         .center {margin-left: auto;
                    margin-right: auto;
                    width: 6em;}
      </style>    

   </head>
   <body> 
      <?php
          extract
($_REQUEST); //kg: create form variables
        
error_reporting(E_ALL & ~E_NOTICE); //kg: get rid of run-time notices
        
$email "fred@carpets.com";
        
$text "This is a really long 'string' that covers several \"lines\"<br>
                and has an embedded variable 
$email<br>
                and both single and double quotes."
;
        echo 
"<h1>$text</h1>";
      
?>
   </body>
</html>