I am trying a reverse engineering with PHP, Javascript and MySQL query. I am creating a form for editing events registered in a database table.
In one of the fields, called the Presence List, here's how it brings the value of the presence list field inside the numPart
:
<div class="BoxForm1" id="nomeParticipante">
<br>
<div id="numPart">
<?php foreach ($data['evento'] as $evento){ echo $evento['listapresenca']; } ?>
</div>
<input type="hidden" name="part_text" id="part_text" value="" />
</div>
In the form that inserts a new data, the presence list is composed of one or more textbox, depending on how many participants the event will have. Usually the field is registered as follows:
Name 1
Name 2
Name 3
...
Name 10
What I wanted was a way to turn the presence list text (the text of the div ) into several textboxes, each going from the name to the new line signal
How can I do this?