I am probably not understanding it fully because I kept receiving a blank white screen. So I went back to the guides and tutorials and started from scratch again, creating my test file called form.php. I think I found out what happened. I was able to get it to work in my test. It would load the page, show the question and have a yes and no option. If I selected no it just said you have selected no. If I selected yes, it would then include xxx.htm file.
The problem was that it remembers what it did. So if I try to back to the form.php URL it would automatically include the xxx.htm file because that was what was chosen before. If I chose no then it would say I chose no. It isn't giving me the option each time I go to the form URL, it just remembers my last choice.
[a href=\"http://www.pcxdesigns.com/temp/form.php\" target=\"_blank\"]http://www.pcxdesigns.com/temp/form.php[/a]
// form is submitted
if ( isset($_POST['submit']) )
$agree = $_POST['agree'];
if ( $agree == 'yes' )
else if ( $agree == 'no' )
echo 'you have selected no<br/>';
Thank you for your interest. Do you agree to blah blah blah test.
<form name="question" method="post">
<input type="submit" name="submit" value="continue" />
"Words can completely change their meaning depending on the mind of the listener. They can change into good ones or into bad. Some words cannot be conveyed. What one thinks is good will not always lead to good results."
"May you have the hindsight to know where you've been, the foresight to know where you're going, and the insight to know when you're going too far." - - - Irish Toast