Hi ,
I'm trying to add a search functionality to my page which would re-generate the page based on the search criteria.I intend to pass the search element as an argument to a function.
I'm using forms with a text field.
My PROBLEM is that the value of the text field is not displayed (I've tried 2 methods listed).I'm sure I'm doing something stupid so I need help.
At the same time is there are better ways to do this would appreciate suggestions.
echo "<form name= \"search\" ,action= $PHP_SELF/(or URL?)/, method=\"POST\">";
echo "<input type= \"text\", value =\"111\",size=\"10\" ,name=\"searchfield\" ,title =\"Enter data and press Enter\"></form><BR>";
echo "Search field =$searchfield";
echo $HTTP_POST_VARS["searchfield"]."<BR>";
Thanks