Now for the PHP script. It reads as follows:
<?php
$results = shell_exec ("./RSSReader.py \"" . $_POST["selection"> . "\"") ;
print "
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html;
charset=utf-8\">
<title>About.com's Python-Powered RSS Reader</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"./base.css\" />
</head>
<body bgcolor = \"lightblue\">
<font color = \"black\">
<h4>
";
print $results;
print "</h4> </body> </html>";
?>
Essentially, this merely takes the form data from the web page and patches it through to the Python backend. If you do not understand how this works, see my tutorial on PHP-Javascript-Python as a CGI replacement.

