diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed81605 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +*.~ \ No newline at end of file diff --git a/css/styles.css b/css/styles.css index b0c965a..a2ae11e 100644 --- a/css/styles.css +++ b/css/styles.css @@ -17,6 +17,20 @@ html { margin: auto; } +#guestbook_table { + width: 100%; + height: auto; +} + +#guestbook_name { + display: block; + text-align: center; +} + +textarea { + resize: none; +} + /* unvisited link */ a:link { color: #686bff; diff --git a/pages/header.html b/pages/header.html index b2d26cf..b5d52c5 100644 --- a/pages/header.html +++ b/pages/header.html @@ -15,5 +15,6 @@ the blog github pgp key + guestbook diff --git a/php/guestbook.php b/php/guestbook.php new file mode 100644 index 0000000..627e3db --- /dev/null +++ b/php/guestbook.php @@ -0,0 +1,51 @@ + +Welcome to my guestbook, be free to leave a message !
"; +echo "| Name | Message |
|---|---|
| " . htmlspecialchars($row['name'], ENT_QUOTES, 'UTF-8') . " | "; + echo "" . htmlspecialchars($row['message'], ENT_QUOTES, 'UTF-8') . " | "; + echo "