aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-17 17:02:29 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-17 17:03:57 +0200
commit2810ad72aeb973a898034d6875922284062c5ce0 (patch)
tree2c7555b79054d57350cc4136e3215094c9b4b685 /example
parent38f8e2242353711d5c87c58f3831306934d2e6b7 (diff)
downloadcforum-2810ad72aeb973a898034d6875922284062c5ce0.tar.gz
Rework query functions
Now, the value/parameter retrieval function handles both GET and POST parameters.
Diffstat (limited to 'example')
-rwxr-xr-xexample12
1 files changed, 12 insertions, 0 deletions
diff --git a/example b/example
new file mode 100755
index 0000000..55307b9
--- /dev/null
+++ b/example
@@ -0,0 +1,12 @@
+#!/usr/bin/env perl
+
+print while <DATA>;
+
+__END__
+Content-Type: text/html
+
+<form action="cforum" method="post">
+ <p><label for="name">Name</label><input type="text" name="name" value="" id="name">
+ <p><textarea name="text" rows="8" cols="40"></textarea>
+ <p><input type="submit" value="Continue &rarr;"></p>
+</form> \ No newline at end of file