A form and an array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everyone,

Lets say I have a file called form.php with the following form on it that
redirects to index.php when submitted. I would like to take the values of
the text fields in the form and put them into an array, then be able to
display the values in that array on index.php Does anyone know how I would
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>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux