Ok, I am using appserv, I did everything needed with the dll's and I filled in the information into the index.
Whenever I put it into my www folder and go to the site, it's just a blank page. It has a title and you can view the source, but it just ain't showing the page...
I made an example of this here:
When you get there, notice the top left corner, there is a title. That means that it is showing the index.
And, right click -> view source, it shows half of the source...
Don't even say that there is nothing in my index... There is... I'll even paste it here for you.
Any ideas or help?
Whenever I put it into my www folder and go to the site, it's just a blank page. It has a title and you can view the source, but it just ain't showing the page...
I made an example of this here:
To view the content, you need to sign in or register
When you get there, notice the top left corner, there is a title. That means that it is showing the index.
And, right click -> view source, it shows half of the source...
Don't even say that there is nothing in my index... There is... I'll even paste it here for you.
Code:
<html>
<head>
<title>GunZ User Account Register</title>
<style>
body {
color: #003300;
font-family: Verdana, Arial, Serif;
font-size: 10pt;
background-color: #FFFFFF;
}
input {
border: 1px solid #003300;
color: #003300;
background: #DDDDDD;
font-family: Verdana, Arial, Serif;
font-size: 10pt;
}
tr {
font-size: 10pt;
}
a:link {
text-decoration: none;
color: #003300;
}
a:visited {
text-decoration: none;
color: #003300;
}
a:active {
text-decoration: none;
color: #003300;
}
a:hover {
text-decoration: none;
color: #003300;
}
.style1 {color: #003300}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body>
<div align="center">
<?php
$ip = "mgunz.no-ip.org";
$srvport = "6000";
$mssql_user = "";
$mssql_pass = "";
$mssql_database = "GunZDB";
$mssql_host = "HOME\SQLEXPRESS";
$conn = mssql_connect($mssql_host, $mssql_user, $mssql_pass);
mssql_select_db($mssql_database);
?>
<FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']; ?>?act=register">
<table cellspacing=0 border=0>
<tr>
<td>Username</td>
<td><INPUT TYPE="text" NAME="login" ></td>
</tr>
<tr>
<td>Password</td>
<td><INPUT TYPE="password" NAME="pass"></td>
</tr>
<tr>
<td>Password</td>
<td><INPUT TYPE="password" NAME="passv"></td>
</tr>
<tr>
<td>E-Mail</td>
<td><INPUT TYPE="text" NAME="email"></td>
</tr>
<tr>
<td colspan=2><CENTER><INPUT NAME="Register" VALUE="Register" TYPE="submit"></CENTER></td>
</tr>
</table>
</FORM>
<?php
if ($_GET['act'] == 'register')
{
$user = anti_injection($_POST['login']);
$pass1 = anti_injection($_POST['pass']);
$pass2 = anti_injection($_POST['passv']);
$email = anti_injection($_POST['email']);
if (valida(Array($user,$pass1,$pass2,$email)) == true)
{
if ($pass1 == $pass2)
{
if (ereg("([0-9,a-z,A-Z])", $user))
{
if (ereg("^([0-9,a-z,A-Z]+)([.,_]([0-9,a-z,A-Z]+))*[@]([0-9,a-z,A-Z]+)([.,_,-]([0-9,a-z,A-Z]+))*[.]([0-9,a-z,A-Z]){2}([0-9,a-z,A-Z])?$", $email))
{
$query = mssql_query("SELECT * FROM Accounts WHERE UserID='$user'");
$num_rows = mssql_num_rows($query);
if ($num_rows == 0)
{
$query = mssql_query("SELECT * FROM Accounts WHERE E_Mail='$email'");
$num_rows = mssql_num_rows($query);
if ($num_rows == 0)
{
$query = mssql_query("INSERT INTO Accounts (UserID, Password, E_Mail) VALUES ('$user','$pass1','$email')");
if (!$query)
{
echo ":: Error on account register try later ::<br>";
}
else
{
echo ":: Account has been registered ::<br>";
}
}
else
{
echo ":: Email in use ::<br>";
}
}
else
{
echo ":: User in use ::<br>";
}
}
else
{
echo ":: Invalid Email ::<br>";
}
}
else
{
echo ":: Only use Numbers and Letters in User ID ::<br>";
}
}
else
{
echo ":: Password not equal with other ::<br>";
}
}
}
$query = mssql_query("SELECT * FROM Accounts");
$num_rows = mssql_num_rows($query);
echo "Total Accounts: ".$num_rows."<br>";
// Funo Anti Injection
function anti_injection($sql)
{
$sql = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$sql);
$sql = trim($sql);
$sql = strip_tags($sql);
$sql = addslashes($sql);
return $sql;
}
// Verificar Campos Vazios
function valida($campos){
foreach($campos as $c){
if(empty($c)){
echo ":: All fields needed ::<br>";
return false;
}else{
return true;
}
}
}
?>
</div>
<br /><div style="z-index:3" class="smallfont" align="center">Search Engine Optimization by <a rel="nofollow" href="http://www.vbseo.com/181/">vBSEO</a> 3.0.0 RC6</div><br /><div style="z-index:3" class="smallfont" align="center">Search Engine Optimization by <a rel="nofollow" href="http://www.vbseo.com/181/">vBSEO</a> 3.0.0 RC6</div>
</body>
</html>
Any ideas or help?