Essentially, I have a form within an extended class function whose action is set to PHP_SELF. It seems to be sensitive to the submit button or $Submit not being previously defined as it spits out the error Notice: Undefined variable: Submit. Normally this method works for me, but what happens is that the form doesn't acknowledge $Submit and thus does not pass on to the next section. Could it be because it's within an extended class function? Here's what I have:
class AddProject extends html_open
{
function form()
{
if (!$Submit)
{
?>
<form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
<p align="center"><u><b>Project Information:</b></u><br /><br />
Project Name:<br />
<input type="text" name="ProjectName" size="20" />
<br /><br />
Description:<br />
<textarea name="Description" rows="10" cols="50"></textarea>
<br /><br />
<input type="submit" value="Add Project" name="Submit" />
</p></form>
<?php
}
if ($Submit)
{
blah blah blah.......