# opening tags and stuff.... if ($action eq "filled") { # ..create member file..check stuff.. } else { # html stuff and the form is sent back to "register.cgi" $action = "filled"; }