i am wanting to create a function by where a client can upload voucher codes via a textarea (i.e. copy and paste) and once form submits, the coding will extract each code and place it in the database with its own id.
code example would be
GBVVVVVVV
HGBBBBBBB
JKKKKKKKK
etc
You could do:
which puts each line of the variable $textfield into an array called $vouchers.
you could then loop through all items of the array like so: