void GetImageKey(int sock, PCSTR url)
{
  const char * cp= url;
  while ((*cp) && (*cp!='?')) cp++;
  if (*cp) writestring(sock,cp);
}

FACE="Arial" SIZE="2">
Listing 4The GetImageKey function renders the setting components of the URL (the part past the "?") to the page being displayed. It passes the URL setting to the HTML page so that it can be sent as part of the GIF image request that draws the graph.