phpformgen question - multiple posts at once
Posted: Sat Apr 15, 2006 2:04 am
I've got a form (Created by phpformgen) that feeds an sql database.
I'd like to setup my php form so that I can add multiple records at one time (replicate the same form x times on one html page) and have the php script that receives the data cycle through the records making posts for each entry.
Is there an easy way to do this in php? How can I take a php script that's accepting data from one sql form, and have it cycle through a series of records posted at the same time?
Do I need to make unique form names, or can I do something like:
&name=name&pass=pass&name=name1&pass=pass1
I'm a perl convert, and in Perl we can treat the field names as arrays, essentially making it foreach (@name).
Thanks!
I'd like to setup my php form so that I can add multiple records at one time (replicate the same form x times on one html page) and have the php script that receives the data cycle through the records making posts for each entry.
Is there an easy way to do this in php? How can I take a php script that's accepting data from one sql form, and have it cycle through a series of records posted at the same time?
Do I need to make unique form names, or can I do something like:
&name=name&pass=pass&name=name1&pass=pass1
I'm a perl convert, and in Perl we can treat the field names as arrays, essentially making it foreach (@name).
Thanks!