Replace the application/path specific echo.html and echo2.html with the more flexible...
robs [Wed, 21 Nov 2001 21:47:10 +0000 (21:47 +0000)]
examples/echo.html [deleted file]
examples/echo2.html [deleted file]
examples/test.html [new file with mode: 0644]

diff --git a/examples/echo.html b/examples/echo.html
deleted file mode 100644 (file)
index 152231f..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<html>
-<head><TITLE>EchoFCGI Test</TITLE></head>
-<BODY>
-<FORM ACTION="http://fcgi-devel-kit/examples/EchoFCGI" method="POST">
-Enter your name:<br>
-<INPUT TYPE="text" name="name" size=35><br>
-<p>
-Enter your password:<br>
-<INPUT TYPE="text" name="password" size=35><br>
-<p>
-<br><INPUT TYPE="submit" Value="Go Find"> <INPUT TYPE="reset" value="Reset">
-<br>
-</form></BODY>
-</HTML>
diff --git a/examples/echo2.html b/examples/echo2.html
deleted file mode 100644 (file)
index a6f56fd..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<html>
-<head><TITLE>EchoFCGI Test</TITLE></head>
-<BODY>
-<FORM ACTION="http://fcgidev/Echo2FCGI" method="POST">
-Enter your name:<br>
-<INPUT TYPE="text" name="name" size=35><br>
-<p>
-Enter your password:<br>
-<INPUT TYPE="text" name="password" size=35><br>
-<p>
-<br><INPUT TYPE="submit" Value="Go Find"> <INPUT TYPE="reset" value="Reset">
-<br>
-</BODY>
-</HTML>
diff --git a/examples/test.html b/examples/test.html
new file mode 100644 (file)
index 0000000..18f2125
--- /dev/null
@@ -0,0 +1,52 @@
+<html>\r
+<head>\r
+<title>test</title>\r
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\r
+\r
+<script LANGUAGE="JavaScript">\r
+<!--\r
+function fix_action() \r
+{\r
+    if (document.form.submit_uri.value.toString() == "")\r
+       {\r
+        alert("Enter a URI to submit too!");\r
+        return(false);\r
+    }\r
+    else \r
+       {\r
+        document.form.action = document.form.submit_uri.value;\r
+    }\r
+}\r
+//-->\r
+</script>\r
+\r
+</head>\r
+\r
+<body bgcolor="#FFFFFF" text="#000000">\r
+<form name="form" method="post" action="" enctype="multipart/form-data" onSubmit="return fix_action()">\r
+  <p>checkbox \r
+    <input type="checkbox" name="checkbox" value="checkbox">\r
+  </p>\r
+  <p>radio \r
+    <input type="radio" name="radio" value="on" checked>on \r
+    <input type="radio" name="radio" value="off">off</p>\r
+  <p>menu \r
+    <select name="menu">\r
+      <option value="1" selected>one</option>\r
+      <option value="2">two</option>\r
+      <option value="3">three</option>\r
+      <option value="blah">blah</option>\r
+    </select>\r
+  </p>\r
+  <p>file \r
+    <input type="file" name="file" size="80">\r
+      <input type="hidden" name="hidden">\r
+ </p>\r
+  <hr>\r
+  <p>URI to submit to \r
+    <input type="text" name="submit_uri" size="80">\r
+    <input type="submit" name="submit" value="Submit">\r
+  </p>\r
+  </form>\r
+</body>\r
+</html>\r