Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

272
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda