From 19fcec84d8d7d21e796c7624e521b60d28ee21ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:45:59 +0200 Subject: Adding upstream version 16.2.11+ds. Signed-off-by: Daniel Baumann --- src/civetweb/test/form.html | 118 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 src/civetweb/test/form.html (limited to 'src/civetweb/test/form.html') diff --git a/src/civetweb/test/form.html b/src/civetweb/test/form.html new file mode 100644 index 000000000..381084ce1 --- /dev/null +++ b/src/civetweb/test/form.html @@ -0,0 +1,118 @@ + + + + + + + Example page for HTML form handling + + + + + + + +
+ See HTML form tutorial + and HTML spec.
+ +
+ Text inputs: + A text:
+ A password:
+
+ +
+ Radio set 1: + val1
+ val2
+ val3
+
+ +
+ Radio set 2: + val1
+ val2
+ val3
+
+ +
+ Checkboxes: + val1
+ val2
+ val3
+
+ +
+ HTML5 inputs: + A number:
+ A date:
+ A color:
+ A range:
+ A month:
+ A week:
+ A time:
+ A datetime:
+ A datetime-local:
+ An email:
+ A search:
+ A tel:
+ An url:
+
+ +
+ Files: + A file:
+ Multiple files:
+
+ +
+ Dropdown: + +
+ +
+ Text area: + +
+ +
+ Submit: +
+ Submit to Lua script: + This will only work if server side Lua scripting is activated and /handle_form.lua can be found on the server. +
+ +
+ +
+ Submit to callback: + This will work in the embedded_c example. It will call mg_handle_form_data to parse the request. +
+ + + + + +
+
+ +
+ + + -- cgit v1.2.3