Re: [PHP] Re: help with end of line charater

2009-01-31 Thread Jim Lucas
tedd wrote: > At 11:58 AM -0600 1/30/09, Adam Williams wrote: >> yeah just a second ago a big lightbulb went off in my head > > > Try a bigger light-bulb and store the email addresses in a database. > Then you can use them as you want regardless if the user hit return or not. > > Cheers, > > te

Re: [PHP] Re: help with end of line charater

2009-01-31 Thread tedd
At 11:58 AM -0600 1/30/09, Adam Williams wrote: yeah just a second ago a big lightbulb went off in my head Try a bigger light-bulb and store the email addresses in a database. Then you can use them as you want regardless if the user hit return or not. Cheers, tedd -- --- http://sper

Re: [PHP] Re: help with end of line charater

2009-01-30 Thread Jim Lucas
Adam Williams wrote: > Shawn McKenzie wrote: >> This may be best handled in your sorting code. What does it look like? >> > > yeah just a second ago a big lightbulb went off in my head and i fixed > my code to add a \r\n on saving, and strip it on viewing. I sort on > viewing, not sort on sav

Re: [PHP] Re: help with end of line charater

2009-01-30 Thread Konstantin S. Kurilov
Hello Adam! $list2 = explode("\n", $list); // "\n" not "\r\n" $list = implode("\r\n", $list2); foreach ... - not need with the best regards - Konstantin Kurilov Shawn McKenzie wrote: Adam Williams wrote: I have staff inputting email addresses into a named $list on a form and when they c

Re: [PHP] Re: help with end of line charater

2009-01-30 Thread Adam Williams
Shawn McKenzie wrote: This may be best handled in your sorting code. What does it look like? yeah just a second ago a big lightbulb went off in my head and i fixed my code to add a \r\n on saving, and strip it on viewing. I sort on viewing, not sort on saving. The viewing code looks lik

[PHP] Re: help with end of line charater

2009-01-30 Thread Shawn McKenzie
Shawn McKenzie wrote: > Adam Williams wrote: >> I have staff inputting email addresses into a named $list on >> a form and when they click submit, my php script sorts the email >> addresses and writes to disk. The problem is, lets say they enter the >> email addresses >> >> b...@mdah.state.ms.us

[PHP] Re: help with end of line charater

2009-01-30 Thread Shawn McKenzie
Adam Williams wrote: > I have staff inputting email addresses into a named $list on > a form and when they click submit, my php script sorts the email > addresses and writes to disk. The problem is, lets say they enter the > email addresses > > b...@mdah.state.ms.us > ama...@mdah.state.ms.us > s