summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-07-17 22:01:47 -0400
committerJakob Kaivo <jkk@ung.org>2019-07-17 22:01:47 -0400
commit78e7090bae1e21cf9fd758246a0606aab232713d (patch)
treea073e7dcb005ee086cbb6b4234b8069e783988ff
parentb38dd6b7373d6a05b7c09f38f39ac2059ce04e9c (diff)
cleaner form
-rw-r--r--blog.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/blog.c b/blog.c
index 6d22a10..cdb20fa 100644
--- a/blog.c
+++ b/blog.c
@@ -59,10 +59,10 @@ int main(void)
puts("</head>");
puts("<body>");
printf("<form method=\"POST\" action=\"%s\">\n", getenv("DOCUMENT_URI"));
- puts("Username: <input type=\"text\" name=\"username\"><br>");
- puts("Password: <input type=\"password\" name=\"password\"><br>");
- puts("Title: <input type=\"text\" name=\"title\"><br>");
- puts("<textarea name=\"body\"></textarea><br>");
+ puts("<input type=\"text\" name=\"username\" placeholder=\"username\" size=\"80\"><br>");
+ puts("<input type=\"password\" name=\"password\" placeholder=\"password\" size=\"80\"><br>");
+ puts("<input type=\"text\" name=\"title\" placeholder=\"title\" size=\"80\"><br>");
+ puts("<textarea name=\"body\" cols=\"80\" rows=\"24\"></textarea><br>");
puts("<input type=\"submit\">");
puts("</form>");