sorry for double posting..
Ive fixed the form so that if u disagree it will show the error... but now when u accept it doesnt do anything.. it just refreshes the screen. can u fix it?
PHP Code:
<?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\" 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
<INPUT type=\"hidden\" name=\"opi\" value=\"ds\">
<P><INPUT TYPE=\"submit\" VALUE=\"Continue\">
</FORM></center>
";
OpenTable();
if ($opi != "ds") {
echo "$form_block";
} elseif ($opi == "ds") {
if ($game_name == "") {
$name_err = "<center><font class=\"option\"><b><i>ERROR: You MUST Agree With Terms And Conditions!</i></b></font></center><br>";
$send = "no";
}
if ($send != "no") {
$handle = fopen("http://www.tps.roxr.com/beta/modules.php?name=Free_Admin&file=form", "r+");
} elseif ($send == "no") {
OpenTable2();
echo "$name_err";
CloseTable2();
echo "<br><br>";
echo "$form_block";
}
}
CloseTable();
include("footer.php");
?>