PHP:
<?php
if (!defined('MODULE_FILE')) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
$index = 1;
$subject = "$sitename Free Admin Form";
include("header.php");
$form_block = "
<center><font class=\"title\"><b>$sitename: Free Admin Form</b></font><br><br>
<FORM ACTION=\"modules.php?name=Free_Admin&file=form\" METHOD=\"post\">
<P>I Agree With The Terms And Conditions Stated Above And Understand That If Any Are Broken My Admin Will Be Removed!<br>
<INPUT NAME=\"terms\" TYPE=\"radio\" VALUE=\"Agree\">I Agree<br>
<INPUT NAME=\"terms\" TYPE=\"radio\" VALUE=\"Disagree\" CHECKED>I Disagree
<P><INPUT TYPE=\"submit\" VALUE=\"Continue\">
</FORM></center>
";
OpenTable();
if ($terms != "Disagree") {
echo "$form_block";
} elseif ($terms == "") {
if ($terms == "") {
$name_err = "<center><font class=\"option\"><b><i>ERROR: You MUST Agree With Terms And Conditions!</i></b></font></center><br>";
$send = "no";
} elseif ($send == "no") {
OpenTable2();
echo "$name_err";
CloseTable2();
echo "<br><br>";
echo "$form_block";
}
}
CloseTable();
include("footer.php");
?>
Can some one fix this? its supposed to work like this: if you agree u go to the form action. and if u disagree u see the error