ARRAY, IF & INSERT
| From: | César Aracena | Date: | Fri, 21 Jun 2002 09:06:18 +0000 |
| Subject: | ARRAY, IF & INSERT | ||
| Groups: | php.db php.general | ||
| Request: | Send a blank email to php-db+get-19941@lists.php.net to get a copy of this message | ||
Hi all.
I have this form in which one Administrator can insert new members and
after that, in another page, a form where he/she can insert the new
members sons & daughters. I want to display a table with text inserts
into the admin can type lets say a maximum of 5 kids in the second
page. The members table will have one memberID field (which will be
shared between parents and kids) and a levelID which will grant 0 for
the parent and 1, 2, 3, 4, 5 for the kids.
Now, how do I tell PHP to make an array from the kids input, but only
from the fields in which lets say the name field was filled out in
order to spend the necessary tables rows. Another thing
the Array
should also specify new levelIDs for each kid from 1 to 5. It would be
great if you also show me how to deal with it after its created.
Thanks a lot and sorry for so many questions,
Cesar Aracena <mailto:webmaster@icaam.com.ar>
CE / MCSE+I
Neuquen, Argentina
+54.299.6356688
+54.299.4466621