*takes time away from his new hack*
Try using:
PHP Code:
if($action=="displayform")
{
// form code here
}
if ($HTTP_POST_VARS['action']=="processform")
{
// queries and stuff
}
Then for the form tag, you would use something like
Code:
<form action="pagehere.php" method="post"><input type="hidden" name="s" value="$session[dbsessionhash]">
<!-- form code -->
<input type="hidden" name="action" value="processform">
<input type="submit" class="bginput" name="Submit" value="Submit Tutorial" accesskey="s">
</form>
You'll need to edit that a bit but thats a better way of doing from what i said earlier
Also, use the standardredirect function instead of header("locaion:");