Echoing results

Hello I apologize if I have not posted this in the right section, first day on here and certainly will not be the last.

I ask that someone help me not become bald… errr… rather help me so I stop pulling my hair out.

Take this site for example.

http://www.tizag.com/phpT/examples/formexample.php

I understand the entire concept of this form in its primitive state. However, the part that is stumping me is how on earth can I make it seem grammitcally correct. ie. When the results echoed say you like Steak Pizza Chicken, how can I make it put comma’s and the word and in the sentence. So if someone only says they like steak and pizza it will echo “you like steak and pizza.” Or if they select all three for example, echo back saying “you like steak, pizza, and chicken.”

Any help would be much appreciated.

Hi there,

I have answered you here http://www.phphelp.com/forum/index.php/topic,11844.msg40321.html

Sponsor our Newsletter | Privacy Policy | Terms of Service