#include #include main() { char *adat; char *user; char *pass; adat = (char*) malloc(256 * sizeof(char)); user = (char*) malloc(256 * sizeof(char)); pass = (char*) malloc(256 * sizeof(char)); printf("Content-type:text/html;charset=utf-8\n\n"); adat = getenv("QUERY_STRING"); user = (char*) strtok(adat, "&"); pass = (char*) strtok(NULL, "&"); printf("%s
", user); printf("%s
", pass); }