This commit has been accessed 600 times via Git panel.
commit 7eccda26da0443ad80ce35763f41cc372e4c2e64
tree b303f61f2fcf413614137bf2d1688fd5210349db
parent b8112b2c9a8285a66ce9277bfa30db223149b96a
author Engels Antonio <engels@majcms.org> 1308414761 +0800
committer Engels Antonio <engels@majcms.org> 1308414761 +0800
Add HTML5 form field types and attributes
diff --git a/index.php b/index.php
index 51e4695..c87d947 100644
--- a/index.php
+++ b/index.php
@@ -172,8 +172,8 @@ if (!isset($_SESSION['logged_uid']) and (($pw_put != $pw_get) or !isset($_POST['
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\">";
echo "<form method=\"post\">";
echo "<tr bgcolor=\"#ffffff\"><td><select class=\"input\" name=\"lvl\"><option value=\"subscriber\">subscriber</option><option value=\"postmaster\">postmaster</option><option value=\"administrator\">administrator</option></select></td></tr>";
- echo "<tr bgcolor=\"#ffffff\"><td><input class=\"input\" type=\"text\" name=\"id\" autocomplete=\"off\" maxlength=\"128\"></td></tr>";
- echo "<tr bgcolor=\"#ffffff\"><td><input class=\"input\" type=\"password\" name=\"pw\" autocomplete=\"off\" maxlength=\"64\"></td></tr>";
+ echo "<tr bgcolor=\"#ffffff\"><td><input required class=\"input\" type=\"text\" name=\"id\" autocomplete=\"off\" maxlength=\"128\"></td></tr>";
+ echo "<tr bgcolor=\"#ffffff\"><td><input required class=\"input\" type=\"password\" name=\"pw\" autocomplete=\"off\" maxlength=\"64\"></td></tr>";
echo "<tr bgcolor=\"#ffffff\"><td><input class=\"button\" type=\"submit\" value=\"login\"></td></tr>";
echo "</form>";
echo "</table>";
diff --git a/post.php b/post.php
index eb1bba3..0ab9ea1 100644
--- a/post.php
+++ b/post.php
@@ -44,12 +44,12 @@ if (isset($_POST['new']) and !empty($_POST['new']) and is_numeric($_POST['new'])
mysql_free_result($post_alias_query);
- echo "<tr><td><b>To:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_to\"></td></tr>";
+ echo "<tr><td><b>To:</b></td><td><input required class=\"input\" type=\"text\" name=\"reply_to\"></td></tr>";
echo "<tr><td><b>Cc:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_cc\"></td></tr>";
echo "<tr><td><b>Bcc:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_bcc\"></td></tr>";
- echo "<tr><td><b>Subject:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_subj\"></td></tr>";
+ echo "<tr><td><b>Subject:</b></td><td><input required class=\"input\" type=\"text\" name=\"reply_subj\"></td></tr>";
- echo "<tr><td></td><td><textarea class=\"input\" name=\"reply_body\" rows=\"10\">";
+ echo "<tr><td></td><td><textarea required class=\"input\" name=\"reply_body\" rows=\"10\">";
echo "</textarea></td></tr>";
diff --git a/search.php b/search.php
index 43b264f..ed0546e 100644
--- a/search.php
+++ b/search.php
@@ -63,7 +63,7 @@ if (is_array($search_folders)) {
echo "<td width=\"2\"></td>";
- echo "<td><input type=\"text\" class=\"input\" name=\"imap_search_query\"></td>";
+ echo "<td><input required type=\"text\" class=\"input\" name=\"imap_search_query\"></td>";
echo "<td width=\"2\"></td>";
diff --git a/send.php b/send.php
index 5934b1a..40ce25c 100644
--- a/send.php
+++ b/send.php
@@ -153,12 +153,12 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
mysql_free_result($send_alias_query);
- echo "<tr><td><b>To:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_to\" value=\"$reply_to\" required></td></tr>";
+ echo "<tr><td><b>To:</b></td><td><input required class=\"input\" type=\"text\" name=\"reply_to\" value=\"$reply_to\" required></td></tr>";
echo "<tr><td><b>Cc:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_cc\" value=\"$reply_cc\"></td></tr>";
echo "<tr><td><b>Bcc:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_bcc\"></td></tr>";
- echo "<tr><td><b>Subject:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_subj\" value=\"$reply_subject\" required></td></tr>";
+ echo "<tr><td><b>Subject:</b></td><td><input required class=\"input\" type=\"text\" name=\"reply_subj\" value=\"$reply_subject\" required></td></tr>";
- echo "<tr><td></td><td><textarea class=\"input\" name=\"reply_body\" rows=\"$reply_quote_rows\">";
+ echo "<tr><td></td><td><textarea required class=\"input\" name=\"reply_body\" rows=\"$reply_quote_rows\">";
if ($_POST['rep'] == 2) {
tree b303f61f2fcf413614137bf2d1688fd5210349db
parent b8112b2c9a8285a66ce9277bfa30db223149b96a
author Engels Antonio <engels@majcms.org> 1308414761 +0800
committer Engels Antonio <engels@majcms.org> 1308414761 +0800
Add HTML5 form field types and attributes
diff --git a/index.php b/index.php
index 51e4695..c87d947 100644
--- a/index.php
+++ b/index.php
@@ -172,8 +172,8 @@ if (!isset($_SESSION['logged_uid']) and (($pw_put != $pw_get) or !isset($_POST['
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\">";
echo "<form method=\"post\">";
echo "<tr bgcolor=\"#ffffff\"><td><select class=\"input\" name=\"lvl\"><option value=\"subscriber\">subscriber</option><option value=\"postmaster\">postmaster</option><option value=\"administrator\">administrator</option></select></td></tr>";
- echo "<tr bgcolor=\"#ffffff\"><td><input class=\"input\" type=\"text\" name=\"id\" autocomplete=\"off\" maxlength=\"128\"></td></tr>";
- echo "<tr bgcolor=\"#ffffff\"><td><input class=\"input\" type=\"password\" name=\"pw\" autocomplete=\"off\" maxlength=\"64\"></td></tr>";
+ echo "<tr bgcolor=\"#ffffff\"><td><input required class=\"input\" type=\"text\" name=\"id\" autocomplete=\"off\" maxlength=\"128\"></td></tr>";
+ echo "<tr bgcolor=\"#ffffff\"><td><input required class=\"input\" type=\"password\" name=\"pw\" autocomplete=\"off\" maxlength=\"64\"></td></tr>";
echo "<tr bgcolor=\"#ffffff\"><td><input class=\"button\" type=\"submit\" value=\"login\"></td></tr>";
echo "</form>";
echo "</table>";
diff --git a/post.php b/post.php
index eb1bba3..0ab9ea1 100644
--- a/post.php
+++ b/post.php
@@ -44,12 +44,12 @@ if (isset($_POST['new']) and !empty($_POST['new']) and is_numeric($_POST['new'])
mysql_free_result($post_alias_query);
- echo "<tr><td><b>To:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_to\"></td></tr>";
+ echo "<tr><td><b>To:</b></td><td><input required class=\"input\" type=\"text\" name=\"reply_to\"></td></tr>";
echo "<tr><td><b>Cc:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_cc\"></td></tr>";
echo "<tr><td><b>Bcc:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_bcc\"></td></tr>";
- echo "<tr><td><b>Subject:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_subj\"></td></tr>";
+ echo "<tr><td><b>Subject:</b></td><td><input required class=\"input\" type=\"text\" name=\"reply_subj\"></td></tr>";
- echo "<tr><td></td><td><textarea class=\"input\" name=\"reply_body\" rows=\"10\">";
+ echo "<tr><td></td><td><textarea required class=\"input\" name=\"reply_body\" rows=\"10\">";
echo "</textarea></td></tr>";
diff --git a/search.php b/search.php
index 43b264f..ed0546e 100644
--- a/search.php
+++ b/search.php
@@ -63,7 +63,7 @@ if (is_array($search_folders)) {
echo "<td width=\"2\"></td>";
- echo "<td><input type=\"text\" class=\"input\" name=\"imap_search_query\"></td>";
+ echo "<td><input required type=\"text\" class=\"input\" name=\"imap_search_query\"></td>";
echo "<td width=\"2\"></td>";
diff --git a/send.php b/send.php
index 5934b1a..40ce25c 100644
--- a/send.php
+++ b/send.php
@@ -153,12 +153,12 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
mysql_free_result($send_alias_query);
- echo "<tr><td><b>To:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_to\" value=\"$reply_to\" required></td></tr>";
+ echo "<tr><td><b>To:</b></td><td><input required class=\"input\" type=\"text\" name=\"reply_to\" value=\"$reply_to\" required></td></tr>";
echo "<tr><td><b>Cc:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_cc\" value=\"$reply_cc\"></td></tr>";
echo "<tr><td><b>Bcc:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_bcc\"></td></tr>";
- echo "<tr><td><b>Subject:</b></td><td><input class=\"input\" type=\"text\" name=\"reply_subj\" value=\"$reply_subject\" required></td></tr>";
+ echo "<tr><td><b>Subject:</b></td><td><input required class=\"input\" type=\"text\" name=\"reply_subj\" value=\"$reply_subject\" required></td></tr>";
- echo "<tr><td></td><td><textarea class=\"input\" name=\"reply_body\" rows=\"$reply_quote_rows\">";
+ echo "<tr><td></td><td><textarea required class=\"input\" name=\"reply_body\" rows=\"$reply_quote_rows\">";
if ($_POST['rep'] == 2) {