rendered paste body#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#define FIELD_LEN 50 /* how long each value can be */
int main() {
char *user;
char *passwd;
char *seperator;
char post_params[FIELD_LEN];
printf("<HTML><HEAD></HEAD><BODY><P>Before if statement</P></BODY></HTML>")
;
/* get post pariams from html form */
// if ((fgets(post_params, FIELD_LEN, stdin)) == NULL) {
// printf("<P>Error Logging in.</P></BODY></HTML>");
// return 0;
// }
//
//user = strstr(post_params, "user=") + strlen("user=");
//passwd = strstr(post_params, "passwd=") + strlen("passwd=");
// if ((seperator = strstr(post_params, "&"))); {
// *seperator = '\0';
//
// }
// printf("<P>login: \"%s\"<BR>\npasswd: \"%s\"\n</P></BODY></HTML>", user, pa
sswd);
//
return 0;
}