diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-07-17 22:01:47 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-07-17 22:01:47 -0400 |
commit | 78e7090bae1e21cf9fd758246a0606aab232713d (patch) | |
tree | a073e7dcb005ee086cbb6b4234b8069e783988ff | |
parent | b38dd6b7373d6a05b7c09f38f39ac2059ce04e9c (diff) |
cleaner form
-rw-r--r-- | blog.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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>"); |