<?php // The turns all the request variables (by GET or POST, the GP) into // global variables, prefixed with REQ_. import_request_variables ('GP', 'req_'); if($req_username) $title = "Greetings, $req_username"; else $title = 'Hello, Stranger'; include '../head1.inc'; if($req_username) echo "Hi there, $req_username."; else echo "Who are you, anyway?"; echo "<p>"; if($req_eyecolor == 'three') echo "Where do you balance your glasses?"; else if($req_eyecolor == '') echo "What, you don't have eyes?"; else echo "Your ", $req_eyecolor, " eyes are very nice."; echo "<p>"; if($req_car) echo "Nice car."; else echo "How do you get around?"; echo "<p>"; if($req_plane) echo "Are you allowed to land on the roof?<p>"; if($req_laptop) echo "I have a laptop every time I sit down.<p>"; if($req_gobs) echo "If are having trouble carrying that cash around, I'll be ", "glad to take some off your hands.<p>"; if($req_flu) echo "I hope you feel better soon. (And stay away from me.)<p>"; if($req_shoesize > 12) echo "My, you have large feet.<p>"; else if($req_shoesize && $req_shoesize < 6) echo "How do you stay up?<p>"; if($_SERVER['HTTP_REFERER']) echo '<p><a href="', $_SERVER['HTTP_REFERER'], '"><i>Return</i>'; ?> </body> </html>