[web-php] master: Client side validation of form-user (#695)
| From: | Christoph M. Becker via GitHub | Date: | Tue, 09 Jul 2024 07:33:22 +0000 |
| Subject: | [web-php] master: Client side validation of form-user (#695) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-31815@lists.php.net to get a copy of this message | ||
Author: Christoph M. Becker (cmb69)
Committer: GitHub (web-flow)
Pusher: saundefined
Date: 2024-07-09T10:33:09+03:00
Commit: https://github.com/php/web-php/commit/7b11b960e4e599250448b7f5f551cf88e36451f4
Raw diff: https://github.com/php/web-php/commit/7b11b960e4e599250448b7f5f551cf88e36451f4.diff
Client side validation of form-user (#695)
Co-authored-by: Sergey Panteleev <sergey@php.net>
Changed paths:
M manual/add-note.php
Diff:
diff --git a/manual/add-note.php b/manual/add-note.php
index 1398e5d006..a298fe4fb4 100644
--- a/manual/add-note.php
+++ b/manual/add-note.php
@@ -355,8 +355,8 @@
</td>
</tr>
<tr>
- <th class="subr"><label for="form-user">Your email address (or
name)</label>:</th>
- <td><input id="form-user" type="text" name="user"
size="60" maxlength="40" required value="<?php echo
clean($_POST['user']); ?>"></td>
+ <th class="subr"><label for="form-user">Your email
address</label>:</th>
+ <td><input id="form-user" type="email" name="user"
size="60" maxlength="40" required value="<?php echo
clean($_POST['user']); ?>"></td>
</tr>
<tr>
<th class="subr"><label for="form-note">Your
notes</label>:</th>