PDA

View Full Version : How do I Generate a CSV from a Web Form?


Sazime
07-03-2010, 07:27 PM
I'm trying to do something, which I feel should be easy, but it's giving me a headache.

I want to create a mailing list on a website using a simple form (no crazy marketing/newsletter programs here) by allowing a visitor to simply enter their NAME and EMAIL and have that information inserted in a csv file so it can later be used to send out emails.

I'm not looking for anything fancy. Unsubscribing would be handled manually by direct email, for now, I just need a way to gather the information into one place.

biosc1
07-03-2010, 07:45 PM
Super simple would be to have a server side script handle and parse the form and then save it as a comma separated file...let me see if I can whip something up. I'm kind up in the boonies for the next week, but I'll see if I can figure something out.

Sazime
07-03-2010, 07:52 PM
Super simple would be to have a server side script handle and parse the form and then save it as a comma separated file...let me see if I can whip something up. I'm kind up in the boonies for the next week, but I'll see if I can figure something out.
I appreciate it. I've been looking around to see what I can do, but everything I find seems to be WAY more complex than what I actually need. I figured there had to be a simple way to get php to plop things right into a comma separated file, I just have no idea where to start.

Slack3r78
07-03-2010, 08:02 PM
Python has a very simple CSV lib. Used it last week. You could literally do what you're wanting from the lib documentation.

Sazime
07-03-2010, 08:24 PM
Hrm, not sure if the host I'd be doing it on is running Python, I'll have to ask my buddy to check out his service.