Need clue. How to process long list of names
Posted: Thu Nov 08, 2007 3:09 pm
Ok, call me lazy (and some of you may) but I'm in a hurry to get what should be a simple script off the ground.
I need to process a long list of text items ---names specifically. What I want is to have a simple form with text box into which I paste a string of names from a single Excel column, and when I hit submit, it will return a page(s) with the modified names ready for me to paste back into my spread sheet. I want it general purpose (may change the conversion function from time to time), but one use would be to convert a column of last names into the metaphone equivalents. I am OK with building the simple form, and I assume I will use the POST method to send the names-string to a php loop reading each into an array to be converted then echoed back to my browser. What I'm not clear on is how to break down the _POST variable into an array. Can I do an explode on it using \n as a separator?
As usual, thanks for your help.
I need to process a long list of text items ---names specifically. What I want is to have a simple form with text box into which I paste a string of names from a single Excel column, and when I hit submit, it will return a page(s) with the modified names ready for me to paste back into my spread sheet. I want it general purpose (may change the conversion function from time to time), but one use would be to convert a column of last names into the metaphone equivalents. I am OK with building the simple form, and I assume I will use the POST method to send the names-string to a php loop reading each into an array to be converted then echoed back to my browser. What I'm not clear on is how to break down the _POST variable into an array. Can I do an explode on it using \n as a separator?
As usual, thanks for your help.