I wrote the following code originally on a RedHat server and it worked fine. Recently I installed Apache,mysql, php on a windows machine and when I try to perform a search the $find variable seems to get lost in the post. I've run this as a get and I can see that the variable is set properly in the url. Anybody have any idea why it doesn't work on search.php
This code is from my index.php page
<?php
echo "<h2>search for Audio, Video, Books & Pictures.</h2><br>" ;
echo "<form action='search.php' method='post'>" ;
echo "<br>" ;
echo "<tr>" ;
echo "<td><h4>What are you looking 4?</h4></td>" ;
echo "<td colspan-2 align=center></td>" ;
echo "<input type=radio name='find' value='Audio' checked> Audio  " ;
echo "<input type=radio name='find' value='Video'> Video  " ;
echo "<input type=radio name='find' value='Text'> Text  " ;
echo "<input type=radio name='find' value='Images'> Images  " ;
echo "</select>" ;
echo "</td>" ;
echo "</tr>" ;
echo " " ;
echo "<tr>" ;
echo "<td><input type=submit value='Go!'></td>" ;
echo "</tr>" ;
echo "</form>" ;
?>
this code is from my search.php page
<?php
echo "<title>Search for $find</title>" ; //prints search for
echo $HTTP_POST_VARS['$find'] ; // prints nothing
$variable = $_POST['$find'] ;
echo "$variable" ; // prints nothing
?>