help me
<?PHP
// ------ create table variable ------
// variables for Netscape Navigator 3 & 4 are +4 for compensation of render errors
$Browser_Type = strtok($HTTP_ENV_VARS['HTTP_USER_AGENT'], "/");
if ( preg_match( "/MSIE/", $HTTP_ENV_VARS['HTTP_USER_AGENT']) || preg_match( "Mozilla/5.0", $HTTP_ENV_VARS['HTTP_USER_AGENT']) || preg_match ("/Opera/5.11/", $HTTP_ENV_VARS['HTTP_USER_AGENT']) ) {if ( preg_match( "/MSIE/", $HTTP_ENV_VARS['HTTP_USER_AGENT']) || preg_match( "/Mozilla\/5.0/", $HTTP_ENV_VARS['HTTP_USER_AGENT']) || preg_match ("/Opera/5.11/", $HTTP_ENV_VARS['HTTP_USER_AGENT']) ) {
$theTable = 'WIDTH="400" HEIGHT="245"';
} else {
$theTable = 'WIDTH="400" HEIGHT="245"';
}
//echo $HTTP_ENV_VARS["QUERY_STRING"];
// ------ create document-location variable ------
if ( preg_match("/php\.exe/", $HTTP_SERVER_VARS['PHP_SELF']) || preg_match("/php3\.cgi/", $HTTP_SERVER_VARS['PHP_SELF']) || preg_match("/phpts\.exe/", $HTTP_SERVER_VARS['PHP_SELF']) ) {
$documentLocation = $HTTP_ENV_VARS['PATH_INFO'];
} else {
$documentLocation = $HTTP_SERVER_VARS['PHP_SELF'];
}
if ( $HTTP_ENV_VARS['QUERY_STRING'] ) {
$documentLocation .= "?" . $HTTP_ENV_VARS['QUERY_STRING'];
}
include("../config.php");
?>
<SCRIPT LANGUAGE="JavaScript">
<!--
// ------ check form ------
function checkData() {
var f1 = document.forms[0];
var wm = "<?PHP echo $strJSHello; ?>\n\r\n";
var noerror = 1;
// --- entered_login ---
var t1 = f1.entered_login;
if (t1.value == "" || t1.value == " ") {
wm += "<?PHP echo $strLogin; ?>\r\n";
noerror = 0;
}
// --- entered_password ---
var t1 = f1.entered_password;
if (t1.value == "" || t1.value == " ") {
wm += "<?PHP echo $strPassword; ?>\r\n";
noerror = 0;
}
// --- check if errors occurred ---
if (noerror == 0) {
alert(wm);
return false;
}
else return true;
}
//-->
</SCRIPT>
<table width="300" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" align="center" bgcolor="#666666">
<span style="font-weight: bold; font-size: 16px; color: #FFFFFF">Painel de Administração</span><br />
<br />
<table width="275" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><a href="http://www.urai.pr.gov.br" target="_blank"><img src="../images/layout/img_logo.png" border="0" /></a><br />
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border:1px solid #666666;">
<tr>
<td height="195" valign="top" bgcolor="#333333"><form action='<?PHP echo $documentLocation; ?>' METHOD="post" onSubmit="return checkData()">
<br />
<TABLE border="0" align="center" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD width="130" ALIGN="left" VALIGN="middle">
<font class="pequeno branco">USUÁRIO:</font><br />
<input name="entered_login" type="text" size="25" class="input" onblur="this.className='input';" onfocus="this.className='inputon';" style="border:1px solid #666666;">
<br />
<font class="pequeno branco">SENHA:</font><br />
<input name="entered_password" type="password" size="25" class="input" onblur="this.className='input';" onfocus="this.className='inputon';" style="border:1px solid #666666;">
<br />
<br />
<input name="logar" type="submit" value="ENTRAR" class="input" onblur="this.className='input';" onfocus="this.className='inputon';" style="border:1px solid #666666; height: 15px; width:70px; font-size:9px; font-family:Tahoma, Verdana, arial;">
<br /></TD>
<TD width="85" ALIGN="right" VALIGN="middle"><img src="../images/layout/img_login.png"></TD>
</TR>
<TR>
<TD height="28" colspan="2" ALIGN="center" VALIGN="middle"><font color="#FF0000" class="titulos"><? if ($message) { echo $message; } ?>
</font></TD>
</TR>
<TR>
<TD height="12" colspan="2" VALIGN="middle"> </TD>
</TR>
</TABLE>
</form></td>
</tr>
</table></td>
</tr>
</table>
<br />
<font class="pequeno"><span style="font-size: 14px; font-weight: bold; color: #FFFFFF">TODOS OS DIREITOS RESERVADOS <br />
® COPYRIGHT 2010 - WebMedia</span><span style="color: #FFFFFF"><br />
</span><br />
</font></td>
</tr>
</table>
;
}
– Darren Jul 17 at 5:40function checkData()
– Azrael Jul 17 at 5:43