#ifndef CONTENT_H
#define CONTENT_H
#include <cppcms/view.h>
#include <cppcms/form.h>
#include <iostream>
namespace content {
info_form()
{
add(name);
add(sex);
add(marital);
add(age);
add(submit);
sex.
add(
"Female",
"female");
marital.
add(
"Single",
"single");
marital.
add(
"Married",
"married");
marital.
add(
"Divorced",
"divorced");
}
{
if(!form::validate())
return false;
return false;
}
return true;
}
};
std::string name,state,sex;
double age;
info_form info;
};
}
#endif