Forum Moderators: coopster
set your form action as $PHPSELF (NOT answer.php) and put the following line at the top of question.php:
<?php if ($_REQUEST['submit']) {include ("answer.php");die();}?>
if using a hyperlink click:
at the very top of the question.php file put:
<?php
session_start();
if ($_SESSION['submit']) {include ("answer.php");die();}
$_SESSION['seen']=1;
?>
$PHPSELF in your question.php as the hyperlink location (or hardcode it to question.php)