Client was not declared in this scope

EthernetClient client = server.available(); was declared inside loop
So I can't use it in a subprogram ...
I will try an other way...
Thank you for your help!!