User Tools

Site Tools


en:web_development:forms:insert

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:web_development:forms:insert [2022/01/22 08:12]
mag
en:web_development:forms:insert [2023/08/16 09:33] (current)
Line 31: Line 31:
                 <legend>Add Hero</legend>                 <legend>Add Hero</legend>
                 <ul>                 <ul>
 +                    <li>
 +                        <label>Hero Alias:</label>
 +                        <input type="text" name="alias" size="30" maxlength="50" hint="Iron Man">
 +                    </li>
                     <li>                     <li>
                         <label>Hero Name:</label>                         <label>Hero Name:</label>
-                        <input type="text" name="name" size="30" maxlength="50">+                        <input type="text" name="identity" size="30" maxlength="50" hint="Tony Stark">
                     </li>                     </li>
                     <li>                     <li>
Line 265: Line 269:
 ==== Count ==== ==== Count ====
   * We could have created the query first and added pieces in the loop, but there is a more elegant way.   * We could have created the query first and added pieces in the loop, but there is a more elegant way.
-  * If we know how many movies have been added, we can simply add the right number of <html>(?,?) at the end of the query.+  * If we know how many movies have been added, we can simply add the right number of <html>(?,?)</html> at the end of the query.
   * We can get the number of elements in the <html>$args</html> array using <html>count</html> and then halve it.   * We can get the number of elements in the <html>$args</html> array using <html>count</html> and then halve it.
   * <html>count</html> is like <html>.length</html> in Javascript, counting the number of elements in an array.   * <html>count</html> is like <html>.length</html> in Javascript, counting the number of elements in an array.
en/web_development/forms/insert.1642867948.txt.gz ยท Last modified: 2023/08/16 09:33 (external edit)