I'm getting a compiler error and was hoping someone could help me out. This is what I'm trying:

char identity[7];

string id = ("id") // from the form, this is a CGI program

identity = id.c_str(); // want to make this a char array so I can use strstr().

It gives an error saying incompatible types in assignment of 'const char * to char[7]'.

Anybody know what I should do. As far as I know it should work.