diff options
author | James Bursa <james@netsurf-browser.org> | 2003-10-25 14:13:49 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-10-25 14:13:49 +0000 |
commit | 28f974f00f43d3a04c0bcae32e7cfc85ee66df20 (patch) | |
tree | 9ab73b22014e6da29c851698b0f7c0262260cc8e /render/form.h | |
parent | f1375fe19db064fcebf00433ce73eab99be038ef (diff) | |
download | netsurf-28f974f00f43d3a04c0bcae32e7cfc85ee66df20.tar.gz netsurf-28f974f00f43d3a04c0bcae32e7cfc85ee66df20.tar.bz2 |
[project @ 2003-10-25 14:13:49 by bursa]
URL encoded POST support.
svn path=/import/netsurf/; revision=375
Diffstat (limited to 'render/form.h')
-rw-r--r-- | render/form.h | 10 |
1 files changed, 7 insertions, 3 deletions
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 <stdbool.h> -#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. */ }; |