Multiple Insert Help Please
Posted 29 October 2006 - 02:20 AM
I need some help with multiple row insert into a table
I a have form with a TextArea.
I need to enter in email addresses into the Text Area on the form and when it is submitted it inserts into each separate email into multiple rows.
Any help with this would be greatly appreciated.
Posted 29 October 2006 - 03:39 AM
Posted 29 October 2006 - 05:54 AM
The questin to you is how are the email addresses delimited in the text field. Are they entered on one line, separated by a delimiter such as a comma, or what? If you can't control how the user will enter them you will need to use some regular expressions to determine where one email address ends and another begins.
I do not always test the code I provide, so there may be some syntax errors. In 99% of all cases I found the solution to your problem here: http://www.php.net
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users