Re: [PHP/HTML]Tha Mob - Crime game [beta]
Do you have set 'method="post"' explicitly (defined it yourself) in the <form> tag?
This code works fine for me, see if it works for you aswell:
PHP Code:
<?php
echo '"'.$_POST['username'].'" has a length of '.strlen($_POST['username']).'<br>';
$display_form = true;
if (isset($_POST['submit']))
{
if (strlen($_POST['username']) < 4 || strlen($_POST['username']) > 16)
{
echo 'Error: username is either too short or too long<br>';
}
else
{
echo 'Username is good!<br>';
$display_form = false;
}
}
if ($display_form)
{
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>strlen() test</title>
</head>
<body>
<form method="post">
<input type="text" name="username" maxlength="16">
<input type="submit" name="submit" value="Submit">
</form>
</body>
</html>
<?php
}
?>
Re: [PHP/HTML]Tha Mob - Crime game [beta]
Yes, I have method="post" set.
It's so strange.. your script works.
EDIT:
I seem to have it working now!
EDIT2:
I've made a good looking register validation with JS.
It'll check after you've typed it in.
1 Attachment(s)
Re: [PHP/HTML]Tha Mob - Crime game [beta]
just a tiny bug,,
see attachment
Re: [PHP/HTML]Tha Mob - Crime game [beta]
Quote:
Originally Posted by
AngryCat
just a tiny bug,,
Nice too know I am not the only one with this error!
Edit /
Nvm, seems to be ok now..
Re: [PHP/HTML]Tha Mob - Crime game [beta]
Yeah I was messing around with it, wanted to fix something but I completely bugged something.
Sorry for the inconvenience!
Re: [PHP/HTML]Tha Mob - Crime game [beta]
Imo you should have 2 webboxes - one with the live product for others to use - with limited ammount of bugs and another box for development - we do this at work and i think its the way to go
also i wouldnt offer premium until its virtually finished and bugless
Re: [PHP/HTML]Tha Mob - Crime game [beta]
Its a great website its sort of like themafiaboss.com but i think mafiaboss is better. but i give it 9/10 very good job
Re: [PHP/HTML]Tha Mob - Crime game [beta]
Quote:
Originally Posted by
EliteGM
.....
well... jail, crime looks same like my game (copy&paste works) :scratch:
but jail works at mine.
Re: [PHP/HTML]Tha Mob - Crime game [beta]
I built it all by myself..
I remember when your jail was w/o a proper countdown, the status page of mine was like your jail is now (get it ? ;P)
Re: [PHP/HTML]Tha Mob - Crime game [beta]
Again at AngryCat & Bob;
I thought I fixed it but I didn't, but now I have.
Re: [PHP/HTML]Tha Mob - Crime game [beta]
Hey I got an idea for you >:)
Mobs are nutorious for pumping drugs in and out of different countries in the world. Maybe put a new function that allows users to buy and sell drugs. That's how the real mafias make their funds! Lol..
I just got a thought since you said "The best way to make money is whores.."
In reality, the biggest way mafias get cash is through the drug trade!
Re: [PHP/HTML]Tha Mob - Crime game [beta]
@above
I totally agree :D
@EliteGM
you've fixed the layout issue, but now your login page f***ed up xD
Re: [PHP/HTML]Tha Mob - Crime game [beta]
omg, I hate this laptop
sorry about dobblepost -.- my web-browser f***ed up -.-
so,, Daevius,, please delete this post :D
Re: [PHP/HTML]Tha Mob - Crime game [beta]
UPDATE!:
Try to hover over your weapon/armor or in the shop..
JavaScript = win :O
Re: [PHP/HTML]Tha Mob - Crime game [beta]
To many iframes :/ - i get a exceeded url redirection loop on firefox when i enter the site but it works ok on ie