From 28f974f00f43d3a04c0bcae32e7cfc85ee66df20 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 25 Oct 2003 14:13:49 +0000 Subject: [project @ 2003-10-25 14:13:49 by bursa] URL encoded POST support. svn path=/import/netsurf/; revision=375 --- render/form.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'render/form.h') diff --git a/render/form.h b/render/form.h index b81abf01a..10e357ec7 100644 --- a/render/form.h +++ b/render/form.h @@ -14,15 +14,19 @@ #define _NETSURF_RENDER_FORM_H_ #include -#include "netsurf/render/box.h" +struct box; struct form_control; struct form_option; /** HTML form. */ struct form { - char *action; /* url */ - enum {method_GET, method_POST} method; + char *action; /**< Url to submit to. */ + enum { + method_GET, /**< GET, always url encoded. */ + method_POST_URLENC, /**< POST, url encoded. */ + method_POST_MULTIPART /**< POST, multipart/form-data. */ + } method; /**< Method and enctype. */ struct form_control *controls; /**< Linked list of controls. */ struct form_control *last_control; /**< Last control in list. */ }; -- cgit v1.2.3