From 78e7090bae1e21cf9fd758246a0606aab232713d Mon Sep 17 00:00:00 2001 From: Jakob Kaivo <jkk@ung.org> Date: Wed, 17 Jul 2019 22:01:47 -0400 Subject: cleaner form --- blog.c | 8 ++++---- 1 file 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>"); -- cgit v1.2.1