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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.