Jump to content

[SOLVED] A form and an array


JC99

Recommended Posts

Hello, I would like to take the values of a textfield in a form and put it into an array, then be able to display the values in that array. How would I do that.

 

Here is my form...

<form action="index.php>" method="post">
<table>
  <tr>
    <td>Option1</td>
    <td><input type="text" name="option[]" /></td>
  </tr>
  <tr>
    <td>Option2</td>
    <td><input type="text" name="option[]" /></td>
  </tr>
  <tr>
    <td></td>
    <td><input value=submit" name="submit" type="submit" /></td>
  </tr>
</table>
</table></form>

Link to comment
https://forums.phpfreaks.com/topic/167218-solved-a-form-and-an-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.