Quadratic code working over cgi