html - Except Line Break in Input Text Fieldset -


i have following html capture data.

<fieldset>     <legend>rezept hinzufügen</legend>      <form action="php_act/create.php" method="post">         <table cellspacing="0" cellpadding="0">             <tr>                 <th>rezept name</th>                 <td><input type="text" name="name" placeholder="rezept name" /></td>             </tr>                  <tr>                 <th>kurzbeschreibung</th>                 <td><input type="text" name="kurztext" placeholder="kurzbeschreibung" class="kurztext" /></td>             </tr>             <tr>                 <th>kategorie</th>                 <td><input type="text" name="kategorie" placeholder="kategorien - mit , trennen" /></td>             </tr>              <tr>                 <th>anforderung</th>                  <td><select name="anforderung">                     <option value="einfach">einfach</option>                     <option value="mittel">mittel</option>                     <option value="schwer">schwer</option>                 </select></td>                            </tr>              <tr>                 <th>zeit / nährwerte</th>                 <td><input type="text" name="zeit" placeholder="zeit in minuten" /></td>                 <td><input type="text" name="kcal" placeholder="kcal" size="6"/></td>                 <td><input type="text" name="kh" placeholder="kh" size="6"/></td>                 <td><input type="text" name="eiweiss" placeholder="eiweiss" size="6"/></td>                 <td><input type="text" name="fett" placeholder="fett" size="6" /></td>              </tr>              <tr>                 <th>portionen</th>                 <td><input type="text" name="portionen" placeholder="portionen" /></td>              </tr>              <tr>                 <th>zutaten</th>                 <td><input type="text" name="zutaten" placeholder="zutaten" /></td>              </tr>              <tr>                 <th>zubereitung</th>                 <td><input type="text" name="zubereitung" placeholder="zubereitung" /></td>              </tr>              <tr>                 <th>fotoliaid</th>                 <td><input type="text" name="fotoliaid" placeholder="fotoliaid" /></td>              </tr>               <tr>                 <td><button type="submit">speichern</button></td>                 <td><a href="index.php"><button type="button">zurück</button></a></td>             </tr>         </table>     </form>  </fieldset> 

there input type text. need capture line breaks within textfields. problem "enter" submits default the. possible change that. enter should add line break in textfield , not submit form.

can't use textarea instead of textbox? in textarea can insert enters.

https://www.w3schools.com/tags/tag_textarea.asp


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

angular - Copying node modules to wwwroot AspNetCore -