Jump to content

Splitting Text Field


ironside82

Recommended Posts

Ok heres the scene,

 

I have a private message system that I need to implement a multiple recipients feature to extract individual member names from one entry which the user will divide up using commas when they press submit:

 

eg:-

 

username1,username2,username3,username4

 

this is what will be what is submitted from the form

 

I'm trying to work out the loop that will use the split() function to work out how many usernames have been submitted in the form, split them up, and then send to my messages sql database along with the content of the actual private message itself.

 

I just can get my head around it.

 

I'm sure it relatively simple. If any of you guys could point me in the right direction that would be a great help

 

Thanks in advance

 

James

Link to comment
https://forums.phpfreaks.com/topic/82946-splitting-text-field/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.