#include <libzakcgi/libzakcgi.h>
#include <libzakform/libzakform.h>
+#include <libzakformcgi/libzakformcgi.h>
#include <libzakformini/libzakformini.h>
int
GValue *val;
gchar *filename;
- ZakCgiForm *form;
+ ZakFormCgiForm *form;
ZakFormIniProvider *provider;
val = zak_cgi_main_get_parameter (zakcgimain, "filename");
filename = (gchar *)g_value_get_string (val);
- form = zak_cgi_form_new (zakcgimain,
+ form = zak_form_cgi_form_new (zakcgimain,
"method", "post",
"action", g_strdup_printf ("cgi_ini?filename=%s", filename),
NULL);
if (zak_cgi_main_is_post (zakcgimain))
{
/* validating the form */
- zak_cgi_form_bind (form);
+ zak_form_cgi_form_bind (form);
if (zak_form_form_is_valid (ZAK_FORM_FORM (form)))
{
g_string_append (str, "<div class=\"alert alert-success\" role=\"alert\">Form is valid!!!</div>");
g_string_append (str, "</div>");
- g_string_append (str, zak_cgi_form_render (form));
+ g_string_append (str, zak_form_cgi_form_render (form));
}
}
else
{
zak_form_form_clear (ZAK_FORM_FORM (form));
- g_string_append (str, zak_cgi_form_render (form));
+ g_string_append (str, zak_form_cgi_form_render (form));
}
}