ping pong between html and php