Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

271
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!