diff options
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/post_example.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/post_example.c b/src/examples/post_example.c index 59b7fae7..885cdb1a 100644 --- a/src/examples/post_example.c +++ b/src/examples/post_example.c | |||
@@ -45,19 +45,19 @@ | |||
45 | * Front page. (/) | 45 | * Front page. (/) |
46 | */ | 46 | */ |
47 | #define MAIN_PAGE \ | 47 | #define MAIN_PAGE \ |
48 | "<html><head><title>Welcome</title></head><body><form action=\"/2\" method=\"post\">What is your name? <input type=\"text\" name=\"v1\" value=\"%s\" /><input type=\"submit\" value=\"Next\" /></body></html>" | 48 | "<html><head><title>Welcome</title></head><body><form action=\"/2\" method=\"post\">What is your name? <input type=\"text\" name=\"v1\" value=\"%s\" /><input type=\"submit\" value=\"Next\" /></form></body></html>" |
49 | 49 | ||
50 | /** | 50 | /** |
51 | * Second page. (/2) | 51 | * Second page. (/2) |
52 | */ | 52 | */ |
53 | #define SECOND_PAGE \ | 53 | #define SECOND_PAGE \ |
54 | "<html><head><title>Tell me more</title></head><body><a href=\"/\">previous</a> <form action=\"/S\" method=\"post\">%s, what is your job? <input type=\"text\" name=\"v2\" value=\"%s\" /><input type=\"submit\" value=\"Next\" /></body></html>" | 54 | "<html><head><title>Tell me more</title></head><body><a href=\"/\">previous</a> <form action=\"/S\" method=\"post\">%s, what is your job? <input type=\"text\" name=\"v2\" value=\"%s\" /><input type=\"submit\" value=\"Next\" /></form></body></html>" |
55 | 55 | ||
56 | /** | 56 | /** |
57 | * Second page (/S) | 57 | * Second page (/S) |
58 | */ | 58 | */ |
59 | #define SUBMIT_PAGE \ | 59 | #define SUBMIT_PAGE \ |
60 | "<html><head><title>Ready to submit?</title></head><body><form action=\"/F\" method=\"post\"><a href=\"/2\">previous </a> <input type=\"hidden\" name=\"DONE\" value=\"yes\" /><input type=\"submit\" value=\"Submit\" /></body></html>" | 60 | "<html><head><title>Ready to submit?</title></head><body><form action=\"/F\" method=\"post\"><a href=\"/2\">previous </a> <input type=\"hidden\" name=\"DONE\" value=\"yes\" /><input type=\"submit\" value=\"Submit\" /></form></body></html>" |
61 | 61 | ||
62 | /** | 62 | /** |
63 | * Last page. | 63 | * Last page. |