Help A Tired Novice?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Subliminal
Forum Commoner
Posts: 40
Joined: Thu Oct 23, 2003 8:12 pm

Help A Tired Novice?

Post by Subliminal »

Hey gang,

I am trying to figure the following out. I have looked around and it must be so simple that documentation doesn't cover it - or maybe i am just too confused.

I have a form. The form contains a Multiple Selection Capable List and a Submit button. When the user presses the submit button I need for the values that the user selected placed into a variable seperated by commas so I can throw it in my sql database.

So I know how to do the sql stuff I just don't know how to get it into a variable... I know how to print the array - but that is the second problem - when i print the array and place a comma after each value it will of course end the string with a comma.

Your help is very much appreciated. Thanks!
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

implode()
Subliminal
Forum Commoner
Posts: 40
Joined: Thu Oct 23, 2003 8:12 pm

Post by Subliminal »

You know whats really annoying I searched the PHP function manual and I just wasn't using the correct search keyworks to pull this up. It will do exactly what I need thank you very much!

THANK YOU!
Post Reply