Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

275
Vistas
building a table with data from a text area

I am a hobby Coder, (basically I am just doing this for fun)

I have recently been building a Database to be used in my Role-play Community. The Database will store all Police Officers Data, and all arrests logged in one place.

I am currently trying to build the Page in which the arrest information will be submitted but am struggling quite a lot.

I am looking to make a system that when you input the crimes into a textbox, it will

  1. autocomplete, add a comma and space, and then allow you to enter another crime.

2.add it to a table on the same page. all crimes listed underneath each other.

  1. display the time that the person will get for each of their individual charges in another column next to the charge.

I have been trying for a while and have so far been unsuccessful.I managed to get the auto completing part done but it meant I had to explode the string, which then meant I could't loop through them all or search for them against my DB.

    <div class="form">
  <form>
    <h2>Enter All Crimes</h2> </br>
    <textarea name="message" id="skills"></textarea>
  </form>
  <?php
  ?>
</div>
</div>
<table id='example' class='display' cellspacing='0' width='100%'>
<thead>
  <tr>
      <th>Charge</th>
      <th>Time</th>
  </tr>
</thead>
<tbody>
<td>
  <?php
  // I want this to list off all of the charges from the textarea, with a submit button or without, im not too fussed.
  //also if anyone can help me make an autocompleting Textearea which reads from a database i would be very grateful.
  ?>
</td>
<td>
  <?php
  // I want this to echo The Time related to each of the Charges e.e. Speeding = 10
  ?>
</td>
</tbody>
</table>
</body>
</html>

this is a link to one of my page so far so you can see what I am going for: http://ericmchogan.co.uk/project_roleplay/leo_panel/textbox.php

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda