Cleaned up my file and added oranges, I made it so that it doesn't matter wich variable you provide and in wich order. <html> <head> <title>Fruits and Vegetables Counter</title> </head> <body> <?php //pears if(isset($_GET['pears']) && is_numeric($_GET['pears'])) { echo "Number of Pears = ".$_GET['pears']."<br />"; } else { $_GET['pears'] = 0; } //carrots if(isset($_GET['carrots']) && is_numeric($_GET['carrots'])) { echo "Number of Carrots = ".$_GET['carrots']."<br />"; } else { $_GET['carrots'] = 0; } //oranges if(isset($_GET['oranges']) && is_numeric($_GET['oranges'])) { echo "Number of Oranges = ".$_GET['oranges']."<br />"; } else { $_GET['oranges'] = 0; } //output echo $_GET['pears'] + $_GET['carrots'] + $_GET['oranges']." pieces of fruits and vegetables"; ?> </body> </html> I know that, but I meant how to get the variables behind a filename(?xxx) behind another file?
but how do you want to get the string behind profile.php after (in my example) fruits.php? profile.php?username=something to fruits.php?username=something I mean
But why do you want a new logo? This one is excellent already, isn't it? At least I think so Edit: this is what I use in some other forums, made it myself 48x48 - - 96X96
I don't think this is exactly what you need, but it might be usefull. Fruit.php <?php if(isset($_GET['pears']) && is_numeric($_GET['pears'])) { echo "Number of pears = ".$_GET['pears']."<br />"; } if(isset($_GET['carrots']) && is_numeric($_GET['carrots'])) { echo "Number of carrots = ".$_GET['carrots']."<br />"; } else { echo "Error: id is incorrectly or does not excist"; } echo $_GET['pears'] + $_GET['carrots']." pieces of vegetables and fruit"; ?> The last echo outputs the total numbers of the two strings. Usage: (number)= a numberical value, the error is displayed when a non-numberical value is supplied. Hope this helps
@undeadsoldier: sorry for this being a bit offtopic, but I really like your signature It reminds me of the avatar a developer of a program on its support forum has