x + y = "; print $x + $y; //switch back out to HTML ?>

PHP code is embedded into an HTML document and processed by the server (assuming the server supports it) much like Server Side Includes. However, unlike SSIs, it is a complete programming language -- essentially a stripped-down version of Perl with built-in functions for MySQL database interfacing and session management.

Today's word: END; } elseif ($_SERVER["REQUEST_METHOD"] == "POST") { print "Looks like it was called from our form...

"; print "The word is $_POST[word]"; print "
The button is labeled $_POST[do_it]"; } elseif ($_SERVER["REQUEST_METHOD"] == "HEAD") { print "Eek! A Robot! ..."; } else { print "Are you trying to PUT something over on me? ..."; } ?>