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 <ser...@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>

Reply via email to