Here is the form in short notation
Code: Select all
form.php
for($i=0;$i<=10;$i++)
{
<input fname="first[]/>
<input lname="last[]"/>
<input age ="age[]"/>
}insert.php
Code: Select all
$fname = $_POST['first'];
$lname = $_POST['last'];
$age = $_POST['age'];
** NOTE: These are now arrays.
***** I think somewhere here I need to do a loop for the insert
$result = oci_parse($conn, 'INSERT INTO TABLE (first,last,age) VALUES (:first,:last,:age)');
**** I get an error on the binds saying I cannot have an array to string conversion.
oci_bind_by_name($result, ':first',$first);
oci_bind_by_name($result, ':last',$last);
oci_bind_by_name($result, ':age',$age);