Having trouble getting this to compile. My error message says in line 42 expected ';" before "text" any suggestions?
#include <iomanip>
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <string>
#include <ctype.h>
using namespace std;
struct FORM
{
string name;
string data;
};
void getFormData(string, FORM []);
//FORM *create_array(int);
//string param(string, FORM *dyn_array);
string param(string, FORM *);
int main()
{
string qs(getenv("QUERY_STRING"));
cout << "Content-type:text/html\n\n";
//FORM *dyn_array;
FORM dyn_array[10];
getFormData(qs, dyn_array);
string firstname = param("firstname", dyn_array);
string lastname = param("lastname", dyn_array);
cout << "Content-type:text/html\n\n";
cout << "<html>" << endl;
cout << "<body>" << endl;
cout << "<form>" << endl;
cout << "First name: " << endl;
cout << "<input type="text" name="firstname"> " << endl;
<br>
cout << "Last name: " << endl;
cout << "<input type="text" name="lastname"> " << endl;
cout << "</form> " << endl;
cout << "</body> " << endl;
cout << "</html> " << endl;
system("PAUSE");
return EXIT_SUCCESS;
}