1
How to store the values of an input at array positions? I would like to take the value that was typed in the field and store it in an array, where I need to sort the values that were added in the array and sort them down.
Ex:
<?PHP
echo"<tr>
<td>
<input type="text" name="campos" value="">
</td>
<td>
<input type="submit" value="Submit">
</td>
</tr>";
?>
You’re generating several inputs on the PHP server is that it? and then you want Javascript to save the values entered in an array right? and then you want to use the array in Javascript or PHP?
– Sergio
I’m actually generating a single input in PHP, where I want to take the values inserted in it and store it in an array in PHP! I ended up not creating several inputs, because I’m seeing a way to use a single input to input the data!
– Luiz Felipe