Just a litle question ^^

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
LmS
Forum Newbie
Posts: 4
Joined: Sat Oct 08, 2005 5:51 am

Just a litle question ^^

Post by LmS »

Hey all,
Yes it's me again ^^

Code: Select all

<?
$age=$_POST["age"];
if ($age <= 14) {
	echo "<font face='Verdana' size='4'><b>Your to young sorry!</b>";
}else{
	echo "Welcome!";
}
//Rest is comming soon!
?>
This is strange really,
If i give an input of 13 its say Your to young sorry!, that correct, but if i give the input of 45 it say tha same agian instaid of Welcome! I tryed difrent ways, finaly i came out always ussing == this sign, buth the code should be to long ^^. Help :p

Thnx again :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Post Reply