This is a simplified version of what I really want, but it doesn't work either. I'm just trying a simple submit to self, but it never passes the 'if' test.
<?
if ($create_form) {
echo "thanks!, you submitted $num";
}
else {
?>
<form method="post" action="<? echo $_SERVER['PHP_SELF'] ?>">
<input type="HIDDEN" name="num" value="1">
<input type="Submit" name="create_form" value="Edit Story">
<?
}
?>
The "action="<? echo $_SERVER['PHP_SELF'] ?>" is because register globals is off, and this is the only way I can get it to work. Viewing the source, it seems to work just fine, as the HTML source is "action="/admin/test.php"" which is the correct page.
I've done searches but can't find what will help me.