Hi Tim, nice to meet you and thanks 4 the fast reply

i dont want to make it shorter, in my 2560mega is enough memory left, thats not my ambition. i only need to seperate it in different funktions because it was too complex for me to understand what happens at what part of the code at which time.
for the future i want to modify it for ajax use and some other stuff. and so was it easyer for me to understand. am not really professional in programming and a newbie whith the arduino.
your code works great

, no need to make it shorter (nice trick whith the "#ifdef"), on the contrary (i want to make it longer

). i only adapt it for me for the wifi shield and so i must take out the sock-things which ar not implementet in the wifi library (i think so / dont found it).
"Why are you using a return there? "
thats the question

i think it can be removed too.
but the return is still there in ur script and prevent the code to come to the r and t thing (what is the meaning of this part?)
i run your original code (with the wifi mods - no other changes) and the result was the same - no serial printing of r and t. but this part comes after the "if(strcmp(requestBuffer,"/MYTEST.PHP") == 0)... else" part
greetings

...
pch = strtok(paramBuffer,"&");
while(pch != NULL)
{
if(strncmp(pch,"t=",2) == 0)
{
t = atoi(pch+2);
#ifdef ServerDEBUG
Serial.print("t=");
Serial.println(t,DEC);
#endif
}
if(strncmp(pch,"r=",2) == 0)
{
r = atoi(pch+2);
#ifdef ServerDEBUG
Serial.print("r=");
Serial.println(r,DEC);
#endif
}
...