I can't seem to get the following to work, either using $GET or $POST. Have tried code from several postings here with no luck.
(all in one file)
<?
if ($_POST['save'])
{
echo "viewing information";
}
echo "</p><input type=\"submit\" name=\"save\" value=\"View Information\">";
?>
<form method ="post" action="page2.php">
when I click the button, nothing echos and the page doesn't change.
any ideas would be most appreciated. this forum has been a big help!